-
Notifications
You must be signed in to change notification settings - Fork 718
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
Require X-Content-Type-Options
headers for all responses? [3]
#1221
Comments
@GuillaumeRossolini Thanks for opening this issue.
From our docs:
But, given the recent discussions (#767, whatwg/misc-server#90 (comment)), we should probably revert the change made in 6a2f29b. |
X-Content-Type-Options
headers for all responses?
Further feedback on this: found this thread on Mozilla's HTTP Observatory, which in turn links to Google’s docs on how they mitigate side-channel attacks, which then links to docs on Chrome's CORB, which says this:
|
Actually also "HTML" can be a malicious mime type, as it can obviously embed JS. (Maybe also other types such as SVG?) See https://www.youtube.com/watch?v=dBJt3eR8-bg for a talk by @hannob on that subject. |
X-Content-Type-Options
headers for all responses?X-Content-Type-Options
headers for all responses? [0.5]
This reverts changes added to check for this header only on scripts and stylesheets, and instead, checks for the header on all resources. MDN suggests the former, but Chromium uses this response header on more than script/stylesheets for CORB. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Ref webhintio#1221 Close webhintio#1221
X-Content-Type-Options
headers for all responses? [0.5]X-Content-Type-Options
headers for all responses? [3]
This reverts changes added to check for this header only on scripts and stylesheets, and instead, checks for the header on all resources. MDN suggests the former, but Chromium uses this response header on more than script/stylesheets for CORB. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Fix #1221 Close #1842
This reverts changes added to check for this header only on scripts and stylesheets, and instead, checks for the header on all resources. MDN suggests the former, but Chromium uses this response header on more than script/stylesheets for CORB. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Fix #1221 Close #1842
Following your recommendation (through the webapp), we kept the "X-Content-Type-Options" response header only for JavaScript and CSS resources. However, another recommendation of the community (in this case Scott Helme) is to use this same header for all content types, though MDN seems to agree with you rather that Scott.
Example here:
https://securityheaders.com/?q=https%3A%2F%2Fwww.instantluxe.com%2F&followRedirects=on
I'm confused as to how this header should be used.
The text was updated successfully, but these errors were encountered: