Improve CSP Documentation & Consider Full CSP Compliance in Plotly.js
未关闭
@emilykl 已经在做这个了。
开始于 2025年1月29日。
cs
documentation
feature
P1
- 主要语言
- JavaScript
- 星标
- 18.3k
- 派生
- 2k
- 平均合并
- 2 天 12 小时
- 30 天内合并 PR
- 28
描述
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? 🚀
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
评估
这个 Issue 还没有评估数据。