Skip to content

Review if django-csp can be replaced with Django's future CSP feature #954

@StevenMaude

Description

@StevenMaude

Note: this is the same task as for job-server.

Why are we doing this?

  • Django has recently added its own support for Content Security Policy on 2025-06-27; it's been co-authored by a django-csp maintainer.
  • django-csp is an extra dependency. We typically have a policy of removing third-party dependencies where it's possible to easily replicate the functionality we're using.

How will we know when it's done?

When we're using Django's own CSP support, and have removed django-csp as a dependency.

What are we doing?

  • Awaiting a version of Django with the CSP feature included.
  • Validating that we can have a suitable configuration with Django's own support.
  • If so:
    • replace the django-csp configuration with a configuration for Django;
    • and then remove django-csp.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions