NelmioSecurityBundle icon indicating copy to clipboard operation
NelmioSecurityBundle copied to clipboard

Trusted types

Open henrym2 opened this issue 3 years ago • 0 comments

Linked to issue #233

This PR extends the current CSP configuration within the Nelmio Security bundle to include the new Trusted-Types policy headers

  • trusted-types: <POLICY NAMES>
  • require-trusted-types-for: <DOM-SINK>

These directives interface with the new trusted types feature, with the hopes of reducing DOM based XSS sinks. They instruct user agents to restrict usage of known DOM XSS sinks to a predefined set of functions or Policies. Resources linked at the end of this description describe the spec for trusted types and their Benifits.

henrym2 avatar Aug 12 '20 15:08 henrym2