Skip to content

Allow passing of nonce to style tag (CSP) #128

Open
@rossdakin

Description

@rossdakin

I have strict CSP headers in place, which this library breaks due to its use of <style> tags that don't have nonce or hash attributes on them.

This could be fixed by allowing the passing of a nonce (string) prop from the NextTopLoader component down to the <style> tags here and here.

Activity

added 3 commits that reference this issue on Apr 30, 2025
4a6845e
b2465a1
35b61b3
linked a pull request that will close this issue on Apr 30, 2025
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

      Participants

      @rossdakin

      Issue actions

        Allow passing of nonce to style tag (CSP) · Issue #128 · TheSGJ/nextjs-toploader