Skip to content

Commit

Permalink
fix: frame src enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
CS76 committed Jan 4, 2024
1 parent 0cf285b commit bc7d7ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Middleware/XFrameOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function handle(Request $request, Closure $next): Response
$response = $next($request);

if ($request->route()->getName() == 'embed') {
return $response->header('Content-Security-Policy', "default-src 'self'; base-uri 'self'; block-all-mixed-content; frame-src data: blob: *; img-src 'self'; style-src 'unsafe-inline' *;");
return $response->header('Content-Security-Policy', 'frame-src data: blob: *');
} else {
$xframeOptions = 'SAMEORIGIN';

Expand Down

0 comments on commit bc7d7ef

Please sign in to comment.