mirror of
https://github.com/bdnugget/speedtest-tracker.git
synced 2026-11-07 08:37:27 +00:00
[Bug] Use same origin as header default (#900)
This commit is contained in:
1 parent
347a30097c
commit
ec5626fc2d
2 files changed
+2
-4
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
@@ -27,5 +27,5 @@ return [
|
||||
/**
|
||||
* Security
|
||||
*/
|
||||
'allow_embeds' => env('ALLOW_EMBEDS', null),
|
||||
'allow_embeds' => env('ALLOW_EMBEDS', 'SAMEORIGIN'),
|
||||
];
|
||||
Reference in new issue
Block a user