Skip to content

Commit

Permalink
Update AddCorsHeaderForAppDomainsMiddleware.php
Browse files Browse the repository at this point in the history
Changed CORS header Allow Origin
  • Loading branch information
paaton authored May 27, 2024
1 parent 4174820 commit 4674e02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Middleware/AddCorsHeaderForAppDomainsMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function process(Request $request, ResponseHandler $handler): Response
$response = $handler->handle($request);
}

return $response->withHeader('Access-Control-Allow-Origin', 'kissj.skauting.cz')
return $response->withHeader('Access-Control-Allow-Origin', 'https://kissj.skauting.cz')
->withHeader('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, OPTIONS')
->withHeader('Access-Control-Allow-Headers', $request->getHeader('Access-Control-Allow-Headers') == [] ? '' : $request->getHeader('Access-Control-Allow-Headers'))
->withHeader('Access-Control-Allow-Credentials', 'true'); // also handle cookies
Expand Down

0 comments on commit 4674e02

Please sign in to comment.