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.