AdguardTeam / AdguardTeam/AdguardBrowserExtension

Clarify the $csp rules usage

Open
#1,494 1 comment 0 reactions 1 assignee Claimed by @maximtop View on GitHub
Enhancement P2: High
Dominant language
TypeScript
Stars
4.4k
Forks
449
PR merge metrics
No merged PRs in 30d

Description

1. $csp rules use the regular matching algorithm. e.g. `$csp=script-src 'none',domain=example.org` **will** match the `https://example.org`: https://github.com/AdguardTeam/AdguardBrowserExtension/issues/1474.
2. $csp rules are applied to `DOCUMENT` resources only: https://stackoverflow.com/questions/54203764/content-security-policy-csp-header-onto-each-file-or-only-the-actual-html-pag:
> "The resources which can be requested (and subsequently embedded or executed) on behalf of a specific **Document or Worker**"

We should figure out what to do with the Workers part. It seems that it does not really work in Chrome, only in FF.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.