mirror of
https://github.com/shlinkio/shlink.git
synced 2025-03-14 04:00:57 +03:00
Fixed cross domain middleware not exposing the Authorization header
This commit is contained in:
parent
924ba58f73
commit
4bd67d5f98
1 changed files with 2 additions and 1 deletions
|
@ -41,7 +41,8 @@ class CrossDomainMiddleware implements MiddlewareInterface
|
|||
}
|
||||
|
||||
// Add Allow-Origin header
|
||||
$response = $response->withHeader('Access-Control-Allow-Origin', $request->getHeader('Origin'));
|
||||
$response = $response->withHeader('Access-Control-Allow-Origin', $request->getHeader('Origin'))
|
||||
->withHeader('Access-Control-Expose-Headers', 'Authorization');
|
||||
if ($request->getMethod() !== 'OPTIONS') {
|
||||
return $response;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue