Skip to content

Commit bfe457d

Browse files
authored
[Bug] Set x-frame-options header (alexjustesen#1002)
1 parent 3003b24 commit bfe457d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Middleware/FrameAllowOptions.php

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

2020
if (! blank(config('speedtest.allow_embeds'))) {
21-
$response->header('X-Frame-Options', 'ALLOW-FROM '.config('speedtest.allow_embeds'));
21+
$response->headers->set('X-Frame-Options', 'ALLOW-FROM '.config('speedtest.allow_embeds'));
2222
}
2323

2424
return $response;

0 commit comments

Comments
 (0)