Can I use this package with CSP header style-src other than unsafe-inline? #445
Unanswered
lorena-caia
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Yes, there is. You could use the option to load an external CSS file (https://add-to-calendar-button.com/advanced-use#case-1). This way, you circumvent the inline style. However, has some performance issues. An alternative is the cspnonce option, where you can specify a nonce that you use in your CSP settings (introduced with the very latest release). |
Beta Was this translation helpful? Give feedback.
5 replies
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.
-
Hi,
I'm trying to use the 'add-to-calendar-button-react' package but unfortunately, it doesn't seem to work with the CSP header for style-src 'self'.
Is there any possibility to use it without style-src 'unsafe-inline'?
Beta Was this translation helpful? Give feedback.
All reactions