Skip to content

elements: support Content-Security-Policy #1983

Open
@abh

Description

Checklist

  • I could not find a solution in the existing issues or docs.
  • I agree to follow this project's Code of Conduct.

Description

When using the default inline styles for elements, a Content-Security-Policy needs to have "unsafe-inline" allowed.

Describe your ideal solution

Hanko could have an option to accept a nonce to include with the inline styles, I think.

Workarounds or alternatives

No response

Hanko Version

latest

Additional Context

I use https://cdn.jsdelivr.net/npm/@teamhanko/hanko-elements/dist/elements.js which I think is the latest version?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    • Status

      🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions