Skip to content

Conversation

@mhammo
Copy link

@mhammo mhammo commented Sep 10, 2025

resolves #48

Specify a nonce so that the inline style tag can be applied in pages that use a Content-Security-Policy (CSP).

We could attempt to infer this from document.currentScript.nonce, but the style nonce can technically be different from the script nonce, and it's not always inheritable (from testing, this wasn't inheritable in NextJS).

I also didn't want to affect existing behaviour if it's not necessary.

@vercel
Copy link

vercel bot commented Sep 10, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
rodz-input-otp Error Error Sep 10, 2025 10:45am

bjoern621 added a commit to bjoern621/PeerDrop that referenced this pull request Sep 26, 2025
Aktuell muss noch ein Hash für den OTP Input Style Tag verwendet werden.
Dieser sollte eher mit einem Nonce erstetzt werden, ein [Pull
Request](guilhermerodz/input-otp#104) muss dafür
in die Library germergt werden.
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 this pull request may close these issues.

Add nonce as props for inline style

1 participant