I deployed a laravel project on infinityfree, the request is been blocked by the CORS.
Here is the error;
“Access to XMLHttpRequest at ‘http://steviano.infinityfreeapp.com/api/login’ from origin ‘http://localhost:5174’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.”
Everything is working perfectly locally, I don’t know why it is been blocked because I allowed the origin.
I am using Vue with Laravel.