usdoj-crt / crt-portal

Portal for the Civil Rights Division of the U.S. Department of Justice
15 stars 19 forks source link

Update django CSP config for django-csp 4.0 #1882

Closed okkays closed 1 month ago

okkays commented 1 month ago

https://github.com/usdoj-crt/crt-portal-management/issues/1934

What does this change?

Screenshots (for front-end PR):

Checklist:

Author

Reviewer

Notes for reviewer:

See PR instructions doc for full pull request review instructions.

okkays commented 1 month ago

My guess existing csp_nonce will work as is in the code base.

Yup nonce should work! The new way they do CSP_INCLUDE_NONCE_IN is to put NONCE under script-src

BTW, i probably have to rebase the staging release with dev once this merge to dev.

Yeah that's probably the easiest way to do it.