How to apply a nonce to Tailwind inline styling? #13326
Unanswered
joaoguidev
asked this question in
Help
Replies: 1 comment 1 reply
-
How about setting |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello.
I'm using Remix Vite 2.8.1 and implementing my security headers and the Tailwind styling is been blocked due to style-src directive of CSP (Content-Security-Policy).
How would I implement a nonce to the tailwind inline style?
Below is how im importing the tailwind.css on the root file:
Below is my implementation on the entry.server file:
Below is the error that I get alerting me that the style was blocked
Refused to apply inline style because it violates the following Content Security Policy directive: "style-src 'self' 'nonce-7b8cef9c-102c-4". Either the 'unsafe-inline' keyword, a hash ('sha256-Ck30d6oiL1'), or a nonce ('nonce-...') is required to enable inline execution.
I don't want to use 'unsafe-inline'
Beta Was this translation helpful? Give feedback.
All reactions