Skip to content

Automatically add CSP Nonce to script tags #542

@anywaifu

Description

@anywaifu

Description

{% htmx-script %} doesn't allow to receive CSP_NONCE. My workaround was using like <script src="{% static 'django_htmx/htmx.min.js' %}" nonce="{{ CSP_NONCE }}" defer></script> but then I don't have the optimization when debugging :/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions