Changed value returned in Access-Control-Allow-Origin so that it is always set to '*'

This commit is contained in:
Alejandro Celaya
2021-01-24 09:22:46 +01:00
parent f57303f8c0
commit 76aa6502db
3 changed files with 4 additions and 4 deletions

View File

@@ -32,7 +32,7 @@ class CrossDomainMiddleware implements MiddlewareInterface, RequestMethodInterfa
}
// Add Allow-Origin header
$response = $response->withHeader('Access-Control-Allow-Origin', $request->getHeader('Origin'));
$response = $response->withHeader('Access-Control-Allow-Origin', '*');
if ($request->getMethod() !== self::METHOD_OPTIONS) {
return $response;
}