Skip to content

Any thoughts on content security policy / django-csp? #34

Open
@gunnar-rydberg

Description

@gunnar-rydberg

When I migrated from 0.11a11 to .11b4 I had to mess around with content security policy hashes for the importmap added the django admin page. (Was this added in the refactoring?...)

We are using the django-cps package for reference. (version 3.8).

Of course to just get things working, we just add the required CPS hash to the headers of each response. (Handled by django-cps configuration)

However since you are working on django_js_assets: Maybe one could make it interact with django-cps and add the correct nounce to the script-tag containing importmap.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions