Improve CSP Documentation & Consider Full CSP Compliance in Plotly.js
Open
@emilykl is already working on this.
Since Jan 29, 2025.
cs
documentation
feature
P1
- Dominant language
- JavaScript
- Stars
- 18.3k
- Forks
- 2k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 28
Description
Title: Improve CSP Documentation & Consider Full CSP Compliance in Plotly.js
Description
Plotly.js provides a strict CSP bundle for users with strong Content Security Policies (CSP), but clear documentation is missing on:
- What’s included/excluded in the strict bundle
- Known limitations and workarounds
Enterprise customers and community users (e.g., this forum post) have requested better CSP support and clarity. The strict bundle exists (plotly-strict.js), but its usage is not well-documented.
Proposed Actions
- Document the strict bundle’s capabilities, limitations, and integration steps.
- Provide examples for CSP-compliant usage in Dash & JS.
- Evaluate full CSP compliance for Plotly.js instead of maintaining a separate bundle.
- Internal enterprise customers have requested a fully CSP-compliant version.
- Can the main plotly.js bundle be refactored to remove
evaland inline scripts?
Why This Matters
- CSP restrictions block adoption in security-sensitive environments.
- Clear documentation would prevent confusion and production roadblocks.
- Growing demand from enterprises & community users for strict CSP support.
Can the team consider making the main bundle fully CSP-compliant? Are there technical challenges or funding requirements for this? 🚀
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.