Skip to content

Commit 64f79f2

Browse files
committed
whitelist application/ld+json
1 parent ae92ef6 commit 64f79f2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/browser/ScriptManager.zig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,10 @@ pub fn addFromElement(self: *ScriptManager, element: *parser.Element) !void {
140140
if (std.ascii.eqlIgnoreCase(script_type, "application/json")) {
141141
return;
142142
}
143+
if (std.ascii.eqlIgnoreCase(script_type, "application/ld+json")) {
144+
return;
145+
}
146+
143147
log.warn(.user_script, "unknown script type", .{ .type = script_type });
144148
return;
145149
};

0 commit comments

Comments
 (0)