mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-14 15:00:01 -04:00
really dumb csp thingy
This commit is contained in:
parent
ec0fb8b70a
commit
077302aada
1 changed files with 3 additions and 1 deletions
|
@ -199,7 +199,9 @@ function traverseParsedHtml(node: any, cookieStore: CookieStore, origin?: URL) {
|
|||
}
|
||||
|
||||
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 = {};
|
||||
} else if (
|
||||
node.attribs["http-equiv"] === "refresh" &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue