Cors
This commit is contained in:
@ -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');
|
||||
|
Reference in New Issue
Block a user