Skip to content

Commit ec5626f

Browse files
authored
[Bug] Use same origin as header default (#900)
1 parent 347a300 commit ec5626f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

app/Http/Middleware/FrameAllowOptions.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ public function handle(Request $request, Closure $next): Response
1717
{
1818
$response = $next($request);
1919

20-
if (! blank(config('speedtest.allow_embeds'))) {
21-
$response->header('X-Frame-Options', 'ALLOW-FROM '.config('speedtest.allow_embeds'));
22-
}
20+
$response->header('X-Frame-Options', 'ALLOW-FROM '.config('speedtest.allow_embeds'));
2321

2422
return $response;
2523
}

config/speedtest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@
2727
/**
2828
* Security
2929
*/
30-
'allow_embeds' => env('ALLOW_EMBEDS', null),
30+
'allow_embeds' => env('ALLOW_EMBEDS', 'SAMEORIGIN'),
3131
];

0 commit comments

Comments
 (0)