[Bug] Use same origin as header default (#900)

This commit is contained in:
Alex Justesen authored and GitHub committed 2023-11-11 23:29:30 -05:00
1 parent 347a30097c
commit ec5626fc2d
2 files changed
+2 -4

No files matched your search

+1 -3
View File
@@ -17,9 +17,7 @@ class FrameAllowOptions
{
$response = $next($request);
if (! blank(config('speedtest.allow_embeds'))) {
$response->header('X-Frame-Options', 'ALLOW-FROM '.config('speedtest.allow_embeds'));
}
$response->header('X-Frame-Options', 'ALLOW-FROM '.config('speedtest.allow_embeds'));
return $response;
}
+1 -1
View File
@@ -27,5 +27,5 @@ return [
/**
* Security
*/
'allow_embeds' => env('ALLOW_EMBEDS', null),
'allow_embeds' => env('ALLOW_EMBEDS', 'SAMEORIGIN'),
];