patternfly / patternfly/patternfly-react
Code Editor - loading resources from jsdeliver
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 862
- 派生
- 392
- 平均合并
- 4 天 8 小时
- 30 天内合并 PR
- 9
描述
Is this a new component or an extension of an existing one?
The code editor is loading resources via jsdeliver, this conflicts with strict Content-Security-Policy (CSP) settings, causing errors and forcing users to relax their security policies (e.g., allowing 'unsafe-inline', 'unsafe-eval', and worker-src blob:), which weakens security
Describe the feature
Would it be possible to package all these resources into the local bundle instead?
Are there visuals for this feature? If applicable, please include examples for each state and for varying widths
Any other information?
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
Issue 中没有指出源文件或测试。首先定位代码编辑器的资源加载入口点和 bundler 配置,然后追踪哪些资源是从 jsdelivr 获取的。完成的标准是:资源由本地 bundle 提供,并且编辑器能够在所述的严格 CSP 设置下运行,而不需要这些策略放宽措施。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- react, typescript
- 领域
- frontend, security
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100