FIX: CORS other requests

This commit is contained in:
Juan Pablo Vial
2024-10-25 18:40:59 -03:00
parent d1b255aa8b
commit 3e9f9a3fef

View File

@ -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', '*');
}
}