Rewrite integrity as an empty string instead of null, apparently null wasn't working..?

This commit is contained in:
wearrrrr 2024-11-04 12:38:37 -06:00
parent 00dc1ab595
commit 8844634c76

View file

@ -142,12 +142,16 @@ export const htmlRules: {
}, },
src: ["video", "audio"], src: ["video", "audio"],
}, },
{
fn: () => "",
integrity: ["script", "link"],
},
{ {
fn: () => null, fn: () => null,
// csp stuff that must be deleted // csp stuff that must be deleted
nonce: "*", nonce: "*",
integrity: ["script", "link"],
csp: ["iframe"], csp: ["iframe"],
credentialless: ["iframe"], credentialless: ["iframe"],
}, },