Laravel - Access to XMLHttpRequest from origin has been blocked by CORS

i published my project and when i want to use the api it tells me this.

Access to XMLHttpRequest at ‘api’ from origin ‘frontend’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: It does not have HTTP ok status.

I use laravel 7.24

same issues with me I use laravel 7.3

First make sure it works well on you localhost, after that follow and read the instructions here https://forum.radsystems.io/t/publishing-your-radsystems-project/294.

I have the same error message, the issue here is that all the API’s work except for the “account” endpoint which launches the error when accessed in production. In local env work perfectly. I have requested help several times in the slack channel, I’ve contacted you guys personally but had no answer, so please I really need to fix this.

Try this:

it worked… thank you so much.

1 Like