Skip to content

Conversation

Chiemezuo
Copy link
Contributor

@Chiemezuo Chiemezuo commented Aug 27, 2025

Fixes #532

In December, Django 6.0 is expected to be released.

One of the biggest features will be the built-in CSP support. This means that projects that previously used external CSP packages like django-csp will no longer need to rely on external tooling. CSP will be supported out-of-the-box 🎊

I've tested this tool, and I feel confident that we can replace our usage of django-csp with it. However, as Django 6.0 is not yet available, we cannot remove usage of django-csp.

This PR adds support for the coming Django 6.0 release, while keeping the existing django-csp functionality.

They will both be interchangeable, depending on whether it's a compatible Django version or not.

@Stormheg Stormheg changed the title Refactor/inbuilt django csp Refactor to use upcoming Django 6.0 CSP support Aug 27, 2025
@Stormheg Stormheg marked this pull request as draft August 27, 2025 21:31
@Chiemezuo Chiemezuo marked this pull request as ready for review August 28, 2025 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor CSP configuration from django-csp to Django 6.0 core support
1 participant