<feed xmlns='http://www.w3.org/2005/Atom'>
<title>django.git/tests/utils_tests/test_csp.py, branch 6.0.2</title>
<subtitle>django
</subtitle>
<id>http://cgit.adnoto.dev/django.git/atom?h=6.0.2</id>
<link rel='self' href='http://cgit.adnoto.dev/django.git/atom?h=6.0.2'/>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/'/>
<updated>2025-12-24T17:48:16Z</updated>
<entry>
<title>[6.0.x] Refs #36810 -- Avoided infinite recursion in LazyNonce.__repr__().</title>
<updated>2025-12-24T17:48:16Z</updated>
<author>
<name>Sean Reed</name>
<email>sean@sean-reed.com</email>
</author>
<published>2025-12-19T21:09:25Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=16107ab710dc23d5ea0aa17da6bf29fe89b61bb0'/>
<id>urn:sha1:16107ab710dc23d5ea0aa17da6bf29fe89b61bb0</id>
<content type='text'>
Moved nonce generation in ``django.utils.csp.LazyNonce`` to a function
to avoid infinite recursion in ``SimpleLazyObject.__repr__`` for
unevaluated instances.

Co-authored-by: Natalia &lt;124304+nessita@users.noreply.github.com&gt;

Backport of 165c3599965e63f88649a46fcc2ff681c52f2f66 from main.
</content>
</entry>
<entry>
<title>Refs #36500 -- Rewrapped long docstrings and block comments via a script.</title>
<updated>2025-07-23T23:17:55Z</updated>
<author>
<name>django-bot</name>
<email>ops@djangoproject.com</email>
</author>
<published>2025-07-23T03:41:41Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=69a93a88edb56ba47f624dac7a21aacc47ea474f'/>
<id>urn:sha1:69a93a88edb56ba47f624dac7a21aacc47ea474f</id>
<content type='text'>
Rewrapped long docstrings and block comments to 79 characters + newline
using script from https://github.com/medmunds/autofix-w505.
</content>
</entry>
<entry>
<title>Fixed #15727 -- Added Content Security Policy (CSP) support.</title>
<updated>2025-06-27T18:57:02Z</updated>
<author>
<name>Rob Hudson</name>
<email>rob@cogit8.org</email>
</author>
<published>2025-05-03T17:01:58Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=d63241ebc7067fdebbaf704989b34fcd8f26bbe9'/>
<id>urn:sha1:d63241ebc7067fdebbaf704989b34fcd8f26bbe9</id>
<content type='text'>
This initial work adds a pair of settings to configure specific CSP
directives for enforcing or reporting policy violations, a new
`django.middleware.csp.ContentSecurityPolicyMiddleware` to apply the
appropriate headers to responses, and a context processor to support CSP
nonces in templates for safely inlining assets.

Relevant documentation has been added for the 6.0 release notes,
security overview, a new how-to page, and a dedicated reference section.

Thanks to the multiple reviewers for their precise and valuable feedback.

Co-authored-by: Natalia &lt;124304+nessita@users.noreply.github.com&gt;
</content>
</entry>
</feed>
