Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
rossdakin opened this issue Apr 30, 2025 · 0 comments · May be fixed by #129
Open

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

rossdakin opened this issue Apr 30, 2025 · 0 comments · May be fixed by #129

Comments

@rossdakin
Copy link

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.

rossdakin added a commit to critsci/nextjs-toploader that referenced this issue Apr 30, 2025
rossdakin added a commit to critsci/nextjs-toploader that referenced this issue Apr 30, 2025
rossdakin added a commit to critsci/nextjs-toploader that referenced this issue Apr 30, 2025
@rossdakin rossdakin linked a pull request Apr 30, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant