FIX: CORS other requests
This commit is contained in:
@ -17,6 +17,7 @@ class CORS
|
||||
->withHeader('Access-Control-Allow-Methods', 'POST,GET,OPTIONS')
|
||||
->withHeader('Access-Control-Allow-Headers', 'Content-Type,Authorization');
|
||||
}
|
||||
return $handler->handle($request);
|
||||
return $handler->handle($request)
|
||||
->withHeader('Access-Control-Allow-Origin', '*');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user