Skip to content

Commit

Permalink
Add blob: to frame-src Content-Security-Policy
Browse files Browse the repository at this point in the history
Signed-off-by: Roland Fredenhagen <[email protected]>
  • Loading branch information
ModProg authored and backportbot[bot] committed Jan 14, 2025
1 parent 77e4a69 commit 22bd0b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Controller/SiteController.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ protected function createResponse(int $id, array $site, string $path = ''): Temp
$policy = new ContentSecurityPolicy();
$policy->addAllowedWorkerSrcDomain('*');
$policy->addAllowedFrameDomain('*');
$policy->addAllowedFrameDomain('blob:');
$response->setContentSecurityPolicy($policy);

return $response;
Expand Down

0 comments on commit 22bd0b1

Please sign in to comment.