-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Re-add CSP, use flask-talisman #234
base: main
Are you sure you want to change the base?
Conversation
epicfaace
commented
Aug 25, 2022
- Re-add CSP, set unsafe-inline for CSS and unsafe-eval for JS to ensure the proofer functionality still works
- Use flask-talisman to set CSP. This also sets a bunch of other best-practice security defaults like HSTS, etc. -- see https://github.com/GoogleCloudPlatform/flask-talisman
Just to check, have you already looked through the docs here? |
Yes, I tried this, though 1) alpinejs-csp is not available through the cdn and you need to bundle it locally, and 2) when I did that, and did what the docs suggested around |
Cool, overall SGTM. Before merge, let's resolve the outstanding conflicts. I also removed the |
ambuda/static/js/main.js
Outdated
@@ -8,6 +8,7 @@ import Reader from './reader'; | |||
import Proofer from './proofer'; | |||
import HamburgerButton from './hamburger-button'; | |||
import ProofingCreatePoll from './proofing-create-poll'; | |||
import SortableList from './sortable-list'; |
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.
Move to line 9
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.
oh, maybe my diff was out of date? lgtm