Issue Bug Closed

#100798CSP: wildcard is url-encoded

Franz Kugelmann 05/03/23, 14:41 updated 07/09/24, 12:56

Description

There is one special case with CSP directives, which is not correctly covered right now. Example:

mutations:
  - mode: set
    directive: 'frame-src'
    sources:
      - '*'

This leads to “frame-src /%2A;”, effectively blocking all sources.
Especially for frame-src this global wildcard is in widespread use, since it is hard to predefine which URLs are allowed to be included in iframes.

Reviews 2