Skip to content
This repository was archived by the owner on Feb 21, 2025. It is now read-only.

Commit 5303e43

Browse files
authored
default self should always be true
1 parent 70ad819 commit 5303e43

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Helpers/CSPConvertor.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ public static function toYml($response, $return = false)
9696
rsort($parts);
9797
$arrayHeader[$key]['allow'] = $parts;
9898
}
99+
$arrayHeader['default-src']['self'] = true; // Always allow self
99100
$data = [
100101
CSPBackend::class => [
101102
'csp_config' => $arrayHeader

0 commit comments

Comments
 (0)