Review 12.4 Merged

80208[BUGFIX] Extend CSP directives and sources

Oliver Hader CR +2 V +2 Normal +57 −16 updated 07/28/23, 20:27

Commit message

The CSP directives 'report-to', 'require-trusted-types-for' and
'trusted-types' have been added. Albeit there aren't any typed value
counterparts yet, they can be wrapped in a RawValue object, e.g.

new Mutation(
    MutationMode::Set,
    Directive::RequireTrustedTypesFor,
    new RawValue("'script'")
),

The stand-alone directives 'sandbox', 'trusted-types' and
'upgrade-insecure-request' now can be used without any values.
The cases for 'unsafe-hashes' and 'strict-dynamic' were accidentally
added as directives instead of source keywords and have been removed.

The source schemes 'filesystem:' and 'mediastream' have been added.

Besides that, the frontend CSP configuration now limits using the
`<base>` element to same-origin URIs. The backend CSP configuration
is now even stricter since using `<base>`, `<embed>` and `<object>`
elements is blocked.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 6