[Bug] Don't return SAMEORIGIN twice (Hotfix Release v0.13.3) (#904)

This commit is contained in:
Alex Justesen authored and GitHub committed 2023-11-12 08:15:56 -05:00
1 parent d92a1eccff
commit a59ca53025
2 files changed
+6 -4

No files matched your search

+3 -1
View File
@@ -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;
}
+3 -3
View File
@@ -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),
];