Skip to content
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

Breaking: Limit X-Content-Type-Options usage to scripts and stylesheets #772

Closed
wants to merge 1 commit into from

Conversation

alrra
Copy link
Contributor

@alrra alrra commented Jan 23, 2018

Pull request checklist

Make sure you:

For non-trivial changes, please make sure you also:

  • Added/Updated related documentation.
  • Added/Updated related tests.

Short description of the change(s)

Change x-content-type-options rule so that it limits the usage of the X-Content-Type-Options header to scripts and stylesheets as modern browsers actually only respect the header for those
types of resources
.

Also, sending the header for resources such as images, creates problems in some older browsers.

Fix #767

Change `x-content-type-options` rule so that it limits the usage
of the `X-Content-Type-Options` header to scripts and stylesheets
as modern browsers actually only respect the header for those
types of resources¹.

Also, sending the header for resources such as images, creates
problems² in some older browsers.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

¹ https://fetch.spec.whatwg.org/#x-content-type-options-header
² whatwg/fetch#395

Fix #767
@alrra alrra closed this in 6a2f29b Jan 23, 2018
@alrra alrra deleted the fix-767 branch January 23, 2018 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants