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

Adds the option to disable the x-content-type-options header #75

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

ezelbanaan
Copy link

No description provided.

@coveralls
Copy link

coveralls commented May 20, 2021

Coverage Status

Coverage remained the same at 100.0% when pulling ce3e8f8 on ezelbanaan:master into 0040966 on GoogleCloudPlatform:master.

@@ -284,8 +293,11 @@ def _set_frame_options_headers(self, headers, options):
options['frame_options_allow_from'])

def _set_content_security_policy_headers(self, headers, options):
headers['X-XSS-Protection'] = '1; mode=block'
headers['X-Content-Type-Options'] = 'nosniff'
if self.x_xxs_protection:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if self.x_xxs_protection:
if self.x_xss_protection:

Adds tests for the X-XSS-Protection option and the X-Content-Type-Options.
Fixed a typo
@tunetheweb
Copy link
Contributor

I think that failure is due to Python 3.4 becoming unsupported by libraries like attr: https://www.attrs.org/en/stable/changelog.html

Suggest you remove that version from travis.yml, noxfile.py and setup.py to get this to pass?

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.

3 participants