-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Document compatibility with CSP #4585
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
Comments
Related: d3/d3-dsv#67 |
Also the "download" feature require |
Hi, We found:
|
Same question as above -- unfortunately the way plotly insists of embedding charts seems pretty incompatible with CSP |
Just documenting as I came across this recently again. The note from that readme is as follows:
|
Per #897 , plotly will not be 100% compatible with a strict Content Security Policy concerning
script-src
(i.e. withoutunsafe-efal
).But it's possible to use it with a strict policy, only some methods are not available: for example the basic bundle works with if we avoid
Plotly.d3.csv
(cf #897 (comment))The documentation should highlight these limitation, because once a website starts using a method not compatible with a strong CSP, it will be really difficult to set-up that policy in the future, thus weakening the security of that website. People should be aware of that trade-off, and know which methods they can use to avoid that pitfall.
The text was updated successfully, but these errors were encountered: