github / github/secure_headers

Support CSP "double policies"

Offen
#476 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Ruby
Sterne
3.2k
Forks
253
Ø Merge
19 Std. 11 Min.
Gemergte PRs (30 T.)
1

Beschreibung

CSP double policies enable setups that are not possible with just one CSP. When a browser sees a response with multiple CSP headers (or a single CSP header split via commas ","), the browser will enforce *all* those policies.

One common use case here is to support `strict-dynamic` with nonces and a URI allowlist, which isn't possible with a single `script-src` directive.

There's more information in this talk: https://youtu.be/_L06HetskC4?t=1754.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

The issue does not name files, tests, or entry points. Start by locating the CSP header generation and reviewing the linked talk and browser behavior for multiple policies; done means supporting multiple CSP policies or comma-split CSP values while enforcing each policy as browsers do.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
ruby
Bereich
security
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.