AdguardTeam / AdguardTeam/CoreLibs

Handle SRI integrity issues in JS APIs

オープン
#1,562 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
Enhancement needs tech clarification Priority: P4
主要言語
言語のデータがありません
スター
52
フォーク
10
PR マージ指標
30日以内にマージされた PR はありません

説明

The issue has been originally raised here, but it's wider than that:
https://github.com/AdguardTeam/CoreLibs/issues/1539

In order to solve this, we need to override `window.fetch` and other functions that accept `integrity` so that we could override it:
https://developer.mozilla.org/en-US/docs/Web/API/Request/integrity

Note, that this is not limited just to web pages. We also need to handle service workers as well:
https://developers.google.com/web/tools/workbox/reference-docs/latest/module-workbox-precaching#.addRoute
https://developers.google.com/web/tools/workbox/reference-docs/latest/module-workbox-precaching#.precacheAndRoute

Patching JS apis on every website is quite dangerous so instead of that I suggest adding a scriptlet that would be able to either suppress integrity check or change it so that AG was doing it.

This also means that we need to have scriptlets that are injected into service workers.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

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

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