-
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
Better security defaults #3
Comments
Based on the advise of https://cipherli.st/ I added some headers to the
That bumped the rating from a D to a C+. |
Usefull resource for django |
Also Maurice referred this manual: https://docs.djangoproject.com/en/1.10/ref/clickjacking/ |
|
Having added the 2 suggested middelwares:
|
Apparently there are no sane defaults, and I'll have to add them myself. |
So finally I added these settings:
|
We could combine this issues with the issue freedomvote/freedomvote#73 and add those settings to a production configuration. |
Somehow I'm not getting the benefits in the automated Mozilla ratings. SSL Labs is giving an A rating though. |
Certainly!
|
Error: Multiple HSTS headers |
I guess having X-Frame-Options both in Nginx and Django could be the issue. I'll switch them off at Django and see what I get. |
Much better, thanks @annejan ! I unset the Better than a prominent Dutch voting website Kieskompas (D): https://observatory.mozilla.org/analyze.html?host=kieskompas.nl |
The current security rating for the deployed Freedomvote.nl setup is quite poor: https://observatory.mozilla.org/analyze.html?host=freedomvote.nl The same goes for the original Swiss version. I have to find out how to improve this, and then I can put it in the settings.
The text was updated successfully, but these errors were encountered: