Issue Bug Closed

#104727Mode "reduce" in csp.yaml not working

Chris Müller 08/25/24, 10:50 updated 10/15/24, 09:06

Description

I defined the following csp.yaml:

inheritDefault: true
mutations:
  - mode: reduce
    directive: 'style-src-attr'
    sources:
      - "'unsafe-inline'"

to remove the ‘unsafe-inline” source from “style-src-attr”. However, the header still sends it:

style-src-attr 'unsafe-inline' 'report-sample'; 

Reviews 2