Skip to content

Commit

Permalink
default self should always be true
Browse files Browse the repository at this point in the history
  • Loading branch information
Firesphere authored Jun 29, 2023
1 parent 70ad819 commit 5303e43
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Helpers/CSPConvertor.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ public static function toYml($response, $return = false)
rsort($parts);
$arrayHeader[$key]['allow'] = $parts;
}
$arrayHeader['default-src']['self'] = true; // Always allow self
$data = [
CSPBackend::class => [
'csp_config' => $arrayHeader
Expand Down

0 comments on commit 5303e43

Please sign in to comment.