Skip to content

Commit a59ca53

Browse files
authored
[Bug] Don't return SAMEORIGIN twice (Hotfix Release v0.13.3) (alexjustesen#904)
1 parent d92a1ec commit a59ca53

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

app/Http/Middleware/FrameAllowOptions.php

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

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

2224
return $response;
2325
}

config/speedtest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
/**
77
* Build information
88
*/
9-
'build_date' => Carbon::parse('2023-11-11'),
9+
'build_date' => Carbon::parse('2023-11-12'),
1010

11-
'build_version' => '0.13.2',
11+
'build_version' => '0.13.3',
1212

1313
/**
1414
* General
@@ -27,5 +27,5 @@
2727
/**
2828
* Security
2929
*/
30-
'allow_embeds' => env('ALLOW_EMBEDS', 'SAMEORIGIN'),
30+
'allow_embeds' => env('ALLOW_EMBEDS', null),
3131
];

0 commit comments

Comments
 (0)