Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when using CSP headers and nonce #745

Closed
wwwouter opened this issue Sep 30, 2021 · 0 comments
Closed

Error when using CSP headers and nonce #745

wwwouter opened this issue Sep 30, 2021 · 0 comments

Comments

@wwwouter
Copy link
Contributor

馃悰 Bug Report

Upon introducing CSP for inline styles using a nonce value, the styles for the react-joyride component do not apply since there is no way to pass the nonce

image

I added a PR to resolve #744

To Reproduce

Steps to reproduce the behavior:

Enable CSP for inline styles by setting the nonce in the Content-Security-Policy header

Expected behavior

There should be no error in the console and the style should be loaded.

Link to repl or repo (highly encouraged)

Please provide a https://codesandbox.io/ demo or similar.

Issues without a reproduction link are likely to stall.

Run npx envinfo --system --binaries --npmPackages react-floater

Paste the results here:

  System:
    OS: macOS 11.5.2
    CPU: (8) x64 Apple M1
    Memory: 43.29 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.17.0 - /usr/local/bin/node
    npm: 6.14.13 - /usr/local/bin/npm
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

No branches or pull requests

2 participants