Access to XMLHttpRequest at 'https://localhost/api/login' from origin 'https://localhost:3000' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Credentials' header in the response is '' which must be 'true' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.
When i add manualy this directive header("Access-Control-Allow-Credentials: true"); to index.php everything is running ok, so it seems that nelmio cors config directive allow_credentials: true is ignored
Hi, this is my configuration in symfony 6.4 nelmio_cors.yaml
But i have this alert in console
Access to XMLHttpRequest at 'https://localhost/api/login' from origin 'https://localhost:3000' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Credentials' header in the response is '' which must be 'true' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.
When i add manualy this directive header("Access-Control-Allow-Credentials: true"); to index.php everything is running ok, so it seems that nelmio cors config directive allow_credentials: true is ignored