Skip to content

Support CSP nonce #606

Description

@sdemjanenko

I am running in to an issue with the inline styles that this library is injecting:

document.head.appendChild(styleEl);
. This could be fixed by exposing a Provider which can then receive a nonce to use for the inline style injection. See emotion's solution for this: https://emotion.sh/docs/@emotion/cache#nonce.

Im not sure if animations are the only place in the codebase that inject inline styles. All places would need to be updated to use a provided nonce.

Activity

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

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