github / github/include-fragment-element
host style requires CSP with style-src 'unsafe-inline'
未关闭
- 主要语言
- JavaScript
- 星标
- 568
- 派生
- 43
- 平均合并
- 1 天 6 小时
- 30 天内合并 PR
- 5
描述
Is there another way to style the host as block without an inline style? Or could there be a mechanism for the host page to control the insertion of this style?
https://github.com/github/include-fragment-element/blob/75ac8d9978339004ec7fe4e73c121d64ccea6c3b/src/include-fragment-element.ts#L96-L98
贡献指南
调研方向
阅读 src/include-fragment-element.ts 第 96-98 行,以了解主机样式是如何插入的。在禁止内联样式的 CSP 下复现该行为,然后定义并验证一项更改,以避免这一要求,或让宿主页面控制样式插入。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- frontend, web-dev
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 30/100