github / github/include-fragment-element

host style requires CSP with style-src 'unsafe-inline'

オープン
#109 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
568
フォーク
43
平均マージ
1日 6時間
マージ済み PR(30日)
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
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
30/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。