Improve CSP Documentation & Consider Full CSP Compliance in Plotly.js
Đang mở
@emilykl đang làm issue này rồi.
Từ ngày 29/1/2025.
cs
documentation
feature
P1
- Ngôn ngữ chính
- JavaScript
- Star
- 18.3k
- Fork
- 2k
- Merge trung bình
- 2 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 28
Mô tả
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? 🚀
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Đánh giá
Issue này chưa được đánh giá.