django/tests/check_framework
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
..
custom_commands_app/management/commands Fixed #35656 -- Added an autodetector attribute to the makemigrations and migrate commands. 2024-10-15 16:39:12 +02:00
template_test_apps Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
urls Fixed #34691 -- Added system check for unmatched angle brackets in path(). 2023-07-11 11:59:27 +02:00
__init__.py Fixed #16905 -- Added extensible checks (nee validation) framework 2014-01-20 10:45:21 +08:00
apps.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
models.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_4_0_compatibility.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_async_checks.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_caches.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_commands.py Fixed #35656 -- Added an autodetector attribute to the makemigrations and migrate commands. 2024-10-15 16:39:12 +02:00
test_database.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_files.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_model_checks.py Refs #35234 -- Deprecated CheckConstraint.check in favor of .condition. 2024-03-01 07:15:32 +01:00
test_model_field_deprecation.py Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
test_multi_db.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_security.py Fixed #15727 -- Added Content Security Policy (CSP) support. 2025-06-27 15:57:02 -03:00
test_templates.py Fixed #35233 -- Moved template engine system checks to backend methods. 2024-03-27 08:14:54 +01:00
test_translation.py Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
test_urls.py Fixed #35229 -- Made URL custom error handler check run once. 2024-02-19 05:58:37 +01:00
tests.py Fixed #33855 -- Removed unnecessary system check calls from test worker initialization. 2022-07-19 09:45:11 +02:00