mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
whitelist application/ld+json
This commit is contained in:
@@ -140,6 +140,10 @@ pub fn addFromElement(self: *ScriptManager, element: *parser.Element) !void {
|
|||||||
if (std.ascii.eqlIgnoreCase(script_type, "application/json")) {
|
if (std.ascii.eqlIgnoreCase(script_type, "application/json")) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (std.ascii.eqlIgnoreCase(script_type, "application/ld+json")) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
log.warn(.user_script, "unknown script type", .{ .type = script_type });
|
log.warn(.user_script, "unknown script type", .{ .type = script_type });
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user