Skip to content

Commit

Permalink
Merge pull request #354 from martijnc/restore-default-xss-confg
Browse files Browse the repository at this point in the history
Restore deprecated XSS default configuration values
  • Loading branch information
Seldaek authored Jul 5, 2024
2 parents 2958114 + 4d4351b commit de34d69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -338,9 +338,9 @@ private function getXssProtectionNode(): ArrayNodeDefinition
$node->setDeprecated('nelmio/security-bundle', '3.4.0', 'The "%node%" option is deprecated, use Content Security Policy without allowing "unsafe-inline" scripts instead.');
$node
->children()
->booleanNode('enabled')->end()
->booleanNode('mode_block')->end()
->scalarNode('report_uri')->end()
->booleanNode('enabled')->defaultFalse()->end()
->booleanNode('mode_block')->defaultFalse()->end()
->scalarNode('report_uri')->defaultNull()->end()
->end();

return $node;
Expand Down

0 comments on commit de34d69

Please sign in to comment.