Skip to content

Commit

Permalink
Use self csp
Browse files Browse the repository at this point in the history
Signed-off-by: Corentin Mors <corentin.mors@dashlane.com>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
  • Loading branch information
Corentin Mors authored and npmbuildbot[bot] committed Oct 21, 2020
1 parent a8b9203 commit 86444e2
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
8 changes: 4 additions & 4 deletions js/photos-2.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/photos-2.js.map

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions js/photos-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/photos-main.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/photos-service-worker.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/Controller/PageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function index(): TemplateResponse {

$policy = new ContentSecurityPolicy();
$policy->addAllowedWorkerSrcDomain("'self'");
$policy->addAllowedScriptDomain('blob:');
$policy->addAllowedScriptDomain("'self'");
$response->setContentSecurityPolicy($policy);

return $response;
Expand Down

0 comments on commit 86444e2

Please sign in to comment.