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

Add directive similar to X-Content-Type-Options: nosniff? #298

Open
valtlai opened this issue Feb 28, 2018 · 2 comments
Open

Add directive similar to X-Content-Type-Options: nosniff? #298

valtlai opened this issue Feb 28, 2018 · 2 comments

Comments

@valtlai
Copy link

valtlai commented Feb 28, 2018

Should CSP have a directive similar to X-Content-Type-Options: nosniff (as it does for X-Frame-Options)? Maybe something like no-type-sniffing.

@jonathanKingston
Copy link
Contributor

Is there any stats on how often mime sniffing happens? I'm guessing it is still pretty common.

@martinzhou2015
Copy link

martinzhou2015 commented Jun 13, 2018

This idea is good! Issues caused by MIME sniffing still exist. Adding 'no-type-sniffing' enables the developer to cut an extra field in HTTP headers.

@valtlai valtlai changed the title Add directive similar to ‘X-Content-Type-Options: nosniff’? Add directive similar to X-Content-Type-Options: nosniff? Apr 27, 2021
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

No branches or pull requests

3 participants