CORS authorization

This commit is contained in:
Juan Pablo Vial
2024-10-25 18:37:05 -03:00
parent 4894809105
commit 93a0832800

View File

@ -14,7 +14,7 @@ class CORS
if ($request->getMethod() === 'OPTIONS') {
return $this->responseFactory->createResponse()
->withHeader('Access-Control-Allow-Origin', '*')
->withHeader('Access-Control-Allow-Methods', 'POST,GET,OPTIONS');
->withHeader('Access-Control-Allow-Methods', 'POST,GET,OPTIONS,AUTHORIZATION');
}
return $handler->handle($request);
}