This commit is contained in:
2021-04-13 23:18:34 -04:00
parent b86e69b60e
commit 78b58d4900
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ class Cors {
$response = $handler->handle($request);
$response = $response->withHeader('Access-Control-Allow-Origin', 'http://localhost:8080,http://localhost:8081');
$response = $response->withHeader('Access-Control-Allow-Origin', '*');
$response = $response->withHeader('Access-Control-Allow-Methods', implode(',', $methods));
$response = $response->withHeader('Access-Control-Allow-Headers', $requestHeaders);
//$response = $response->withHeader('Access-Control-Allow-Credentials', 'true');