django/tests/utils_tests
Rob Hudson d63241ebc7 Fixed #15727 -- Added Content Security Policy (CSP) support.
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 <124304+nessita@users.noreply.github.com>
2025-06-27 15:57:02 -03:00
..
archives
eggs
files
test_module
traversal_archives
__init__.py
deconstructible_classes.py
models.py
test_archive.py
test_autoreload.py
test_choices.py
test_connection.py
test_crypto.py
test_csp.py Fixed #15727 -- Added Content Security Policy (CSP) support. 2025-06-27 15:57:02 -03:00
test_datastructures.py
test_dateformat.py Refs #36005 -- Used datetime.UTC alias instead of datetime.timezone.utc. 2025-02-18 08:35:36 +01:00
test_dateparse.py Fixed #36005 -- Dropped support for Python 3.10 and 3.11. 2025-01-20 14:07:28 +01:00
test_deconstruct.py
test_decorators.py
test_duration.py
test_encoding.py
test_feedgenerator.py Refs #36005 -- Used datetime.UTC alias instead of datetime.timezone.utc. 2025-02-18 08:35:36 +01:00
test_functional.py Fixed #36005 -- Dropped support for Python 3.10 and 3.11. 2025-01-20 14:07:28 +01:00
test_hashable.py
test_html.py Fixed CVE-2025-32873 -- Mitigated potential DoS in strip_tags(). 2025-05-06 22:21:42 -03:00
test_http.py Fixed CVE-2025-27556 -- Mitigated potential DoS in url_has_allowed_host_and_scheme() on Windows. 2025-04-02 10:21:33 +02:00
test_inspect.py
test_ipv6.py Fixed #36098 -- Fixed validate_ipv6_address()/validate_ipv46_address() crash for non-string values. 2025-01-15 13:46:06 -03:00
test_lazyobject.py
test_lorem_ipsum.py
test_module_loading.py
test_no_submodule.py
test_numberformat.py
test_os_utils.py
test_regex_helper.py
test_safestring.py Fixed #35648 -- Raised NotImplementedError in SafeString.__add__ for non-string RHS. 2024-08-12 14:25:05 -03:00
test_simplelazyobject.py
test_termcolors.py
test_text.py Applied Black's 2025 stable style. 2025-03-01 19:41:37 +01:00
test_timesince.py Refs #36005 -- Used datetime.UTC alias instead of datetime.timezone.utc. 2025-02-18 08:35:36 +01:00
test_timezone.py Refs #36005 -- Used datetime.UTC alias instead of datetime.timezone.utc. 2025-02-18 08:35:36 +01:00
test_tree.py
utils.py