Questions tagged [sub-resource-integrity]
Usage of the intregrity attribute on script and link HTML elements.
6
questions
3
votes
1
answer
4k
views
Firefox warning: Content Security Policy: Couldn’t process unknown directive ‘require-sri-for’
Why does Firefox tell me
Content Security Policy: Couldn’t process unknown directive ‘require-sri-for’
when Mozilla's documentation says they've implemented it?
The meta tag Firefox is ...
32
votes
2
answers
3k
views
How does subresource integrity actually help?
Subresource integrity basically lets me know that a resource I'm about to download is valid, because the hash of its contents matches what I expect.
But this assumes that I'm already running on some ...
3
votes
2
answers
748
views
What does the CSP require-sri-for directive protect against?
According to Mozilla:
The HTTP Content-Security-Policy require-sri-for directive instructs the client to require the use of Subresource Integrity for scripts or styles on the page.
I fail to see ...
7
votes
3
answers
11k
views
Why does Chrome tell me that the CSP 'require-sri-for' directive is implemented behind a flag which is currently disabled?
In my Content Security Policy I have included require-sri-for script. However, in the Chrome console I get a notice (not an error, just info):
The Content-Security-Policy directive 'require-sri-for'...
9
votes
1
answer
2k
views
Why is sub resource integrity (SRI) only limited to certain files?
I'm quite enthusiastic about the Sub resource integrity (SRI) features. But, why is it only limited to JS and CSS files? I tried to pin a LESS (CSS variant) file, of which the integrity tag was ...
12
votes
3
answers
3k
views
What attacks are mitigated by requiring CORS for subresource integrity verification?
Can someone elaborate on the attacks alluded to in this paragraph from the W3C SubResource Integrity spec?
In order to mitigate an attacker’s ability to read data cross-origin by brute-forcing ...