#36784: Add CSP support to Django's script object and media objects
--------------------------------+------------------------------------------
Reporter: Johannes Maron | Owner: Johannes Maron
Type: New feature | Status: assigned
Component: Forms | Version: 6.0
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
--------------------------------+------------------------------------------
Comment (by Timothy Schilling):
I think for most Django devs who are not super familiar with CSP, but
still want to build out robust applications, avoiding `{{
form.media|with_nonce:csp_nonce }}` would be ideal.
[https://discord.com/channels/856567261900832808/859997770274045954/1476226860705644795
On the Django Discord], there were several long-time django devs who
agreed that the automatic injection of the nonce would be a preferable
API, with nobody preferring the explicit template tag.
--
Ticket URL: <https://code.djangoproject.com/ticket/36784#comment:27>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/0107019d2521eda9-38f68ef0-f2c1-47b1-a395-8a9b86d98d15-000000%40eu-central-1.amazonses.com.