-
-
Notifications
You must be signed in to change notification settings - Fork 636
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure HTTP headers are applied to the correct Content-Type #187
Comments
Well, let's see the conclusions of these issues before concrete action. |
webhint.io settled on setting CSP for So adjusting the pattern to match the types in which results in: However |
OK. text\/(html|javascript)|application\/pdf|xml is sufficient or are false positives for other xml relative types undesirable? |
Covering all cases of XML is certainly better - why not? great! |
Alright. Can't wait for your PR! 😉 |
Closed via #200 |
It was brought to my attention that for example, the CSP header should be sent for other resources such as XML and workers.
(While we could send any given HTTP header in all responses, it'll contribute to header bloat, and for other headers it may even cause issues)
w3c/webappsec#520
webhintio/hint#2342
The text was updated successfully, but these errors were encountered: