really dumb csp thingy

This commit is contained in:
velzie 2024-08-31 18:32:21 -04:00
parent ec0fb8b70a
commit 077302aada
No known key found for this signature in database
GPG key ID: 048413F95F0DDE1F

View file

@ -199,7 +199,9 @@ function traverseParsedHtml(node: any, cookieStore: CookieStore, origin?: URL) {
} }
if (node.name === "meta" && node.attribs["http-equiv"] != undefined) { if (node.name === "meta" && node.attribs["http-equiv"] != undefined) {
if (node.attribs["http-equiv"] === "content-security-policy") { if (
node.attribs["http-equiv"].toLowerCase() === "content-security-policy"
) {
node = {}; node = {};
} else if ( } else if (
node.attribs["http-equiv"] === "refresh" && node.attribs["http-equiv"] === "refresh" &&