-
Notifications
You must be signed in to change notification settings - Fork 0
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
Update/Add security headers #280
Conversation
Did you test this in one of our projects in a deployed setting? I fear that there might be some unwanted side-effects relating to different domains in a deployed setting |
Yes, I tested it on deployed settings. |
I would not add this to existing projects without extensive testing. However, the starter can define best practices and hopefully all bugs are discovered during development. So I think it is relatively safe to merge this. |
Some header could possible have a comment, when to extend/change them. You could also add links to best practices (MDN?), so we can track changes. |
Luckily I originally added comments to each Header but removed them since I wasn't sure if comments should be in the code. I could add them again, but I think it would be better to add detailed docs on how to modify each header and what effect each header has. What would you prefer? |
In code, as documentation can drift away. @johnnyomair? |
Agreed. We could add line comments for each header/item. |
@johnnyomair what headers should be documented and how? I don't think an explanation is useful since anyone can look headers up and they are fairly well explained. And if you understand the header you probably understand the logic behind their value. For example. x-xss-protection - the first thing in the MDN docs is that it should not be used, so its value is false. Edit: My initial documentation was somewhat like this:
|
@max-debug022 I like this. During the review I had a hard time wrapping my head around "What does I think you should add these comments |
I added the comments: cbc0472 |
I'd add comments for all settings that aren't obvious. Also, I'd only change the headers if they differ from helmets default value. |
a7ca85f
to
8fc1a07
Compare
b8bb4da
to
d441331
Compare
e2097fc
to
e76d0fe
Compare
Shouldn't it be comet-demo first? |
This PR has been started long before we changed to demo first, so I'd like to finish it here and then copy it to Demo |
This PR improves/updates the HTTP-Headers
TLDR