News for hackers. Stuff that matters.
Re:Font-Face Toggler Bookmarklet by lifthrasiir on Monday January 15, 2024 @04:07AM (#38998754)
It's rather an origin check instead of CSP I believe [1], and I can imagine a lot of possible attacks if it's open wide...

[1] https://drafts.csswg.org/cssom/#concept-css-style-sheet-orig...

Re:Font-Face Toggler Bookmarklet by cxr on Monday January 15, 2024 @04:58AM (#38999047)
To be clear: I wasn't saying that restricted cross-origin access to style rules was a consequence of CSP; I was likening the effects of document.styleSheets restrictions to the effects of CSP restrictions. (It happens that CSP has other, worse effects.)