diff options
| author | Natalia <124304+nessita@users.noreply.github.com> | 2026-03-25 22:53:58 -0300 |
|---|---|---|
| committer | nessita <124304+nessita@users.noreply.github.com> | 2026-05-06 20:43:37 -0300 |
| commit | 5686ce41958b21f0ae5bfa290e8d4420a6349c1b (patch) | |
| tree | d6f7356457393d730941dd0daa13f2a464bfba0d /scripts | |
| parent | 21de00b097187d1e4e479ea877df64bee22b60c9 (diff) | |
Fixed #36784 -- Added csp_nonce_attr template tag for CSP nonce inclusion.
New default tag `{% csp_nonce_attr %}` was added for explicit CSP nonce
inclusion into `<script>` and `<link>` elements.
`{% csp_nonce_attr %}` renders `nonce="<value>"` when `csp_nonce` is
present in the template context, and renders nothing otherwise.
`{% csp_nonce_attr media %}` renders a `Media` object's assets with the
nonce attr applied to each tag.
Thanks Jacob Walls for the accurate and spot on review comments.
Co-authored-by: Johannes Maron <johannes@maron.family>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
