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

Filter 'x-content-type-options' from twitter's response headers #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rmehner
Copy link

@rmehner rmehner commented Sep 9, 2014

Twitter responds with x-content-type-options set to nosniff (rightfully so), unfortunately this leads to strict MIME errors when used in browsers (like we do with the twitterwall), so that the script is not executed:

reject_js_2014

This just filters this out from the response headers.

@brendanmullan
Copy link

Robin I tested that fix and it works perfectly, many thanks for that :-)

@dmelamedcl
Copy link

I believe the proper fix is rather to set the Content-Type to application/javascript

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