-
Notifications
You must be signed in to change notification settings - Fork 184
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
Adding X-Content-Type-Options: nosniff header #305
Conversation
oh shit I didn't realize the appveyor stuff had snuck out of #304 💩 |
I disabled the webhook, but I'm not sure what is to be done about the failing check |
@doug-wade do you mean what to be done in general about the failing check? I'm pretty sure I have permissions to merge without it passing. |
@@ -299,6 +299,9 @@ function writeHeader(req, res, context, start, pageObject) { | |||
res.type('html'); | |||
res.set('Transfer-Encoding', 'chunked'); | |||
|
|||
// e.g., http://security.stackexchange.com/a/12916 | |||
res.set('X-Content-Type-Options', 'nosniff'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This misses a case. Will push fix shortly.
2cb04ea
to
2c64d3c
Compare
@@ -199,6 +199,9 @@ function renderPage(req, res, context, start, page) { | |||
|
|||
var timer = logger.timer("lifecycle.individual"); | |||
|
|||
// e.g., http://security.stackexchange.com/a/12916 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Protects some browsers (Chrome, IE) against MIME sniffing attacks.
^ That would be nice to include in the comment here.
It gives the headline so I know whether I'm interested in following the link.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can do
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Protects some browsers against MIME sniffing attacks. (Does not help Firefox due to: https://bugzilla.mozilla.org/show_bug.cgi?id=471020)
2c64d3c
to
ebce502
Compare
Thanks @roblg. Added a |
Protects some browsers against MIME sniffing attacks. (Does not help Firefox due to: https://bugzilla.mozilla.org/show_bug.cgi?id=471020)
Protects some browsers (Chrome, IE) against MIME sniffing attacks. (Does not help Firefox
due to: https://bugzilla.mozilla.org/show_bug.cgi?id=471020)
More info: http://security.stackexchange.com/a/12916