mirror of
https://github.com/bdnugget/speedtest-tracker.git
synced 2026-11-07 08:37:27 +00:00
[Bug] Don't return SAMEORIGIN twice (Hotfix Release v0.13.3) (#904)
This commit is contained in:
1 parent
d92a1eccff
commit
a59ca53025
2 files changed
+6
-4
No files matched your search
@@ -17,7 +17,9 @@ class FrameAllowOptions
|
||||
{
|
||||
$response = $next($request);
|
||||
|
||||
$response->header('X-Frame-Options', 'ALLOW-FROM '.config('speedtest.allow_embeds'));
|
||||
if (! blank(config('speedtest.allow_embeds'))) {
|
||||
$response->header('X-Frame-Options', 'ALLOW-FROM '.config('speedtest.allow_embeds'));
|
||||
}
|
||||
|
||||
return $response;
|
||||
}
|
||||
|
||||
@@ -6,9 +6,9 @@ return [
|
||||
/**
|
||||
* Build information
|
||||
*/
|
||||
'build_date' => Carbon::parse('2023-11-11'),
|
||||
'build_date' => Carbon::parse('2023-11-12'),
|
||||
|
||||
'build_version' => '0.13.2',
|
||||
'build_version' => '0.13.3',
|
||||
|
||||
/**
|
||||
* General
|
||||
@@ -27,5 +27,5 @@ return [
|
||||
/**
|
||||
* Security
|
||||
*/
|
||||
'allow_embeds' => env('ALLOW_EMBEDS', 'SAMEORIGIN'),
|
||||
'allow_embeds' => env('ALLOW_EMBEDS', null),
|
||||
];
|
||||
Reference in new issue
Block a user