FIX: CORS headers

This commit is contained in:
Juan Pablo Vial
2024-10-25 18:38:23 -03:00
parent 93a0832800
commit d1b255aa8b

View File

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