@everdevfr It might help you with the issue. https://laracasts.com/discuss/channels/laravel/cors-issue-laravel-10
CORS authorization
Hello everyone,
I don't know if I'm on the right channel but I would like to know how to authorize a request to the Laravel API from the browser code of a website developed in another language?
Here is the context:
I have a RESTful API developed with Laravel 11 and I have a web application developed in WLanguage which makes a request to the Laravel API in javascript.
At run time, Chrome gives me this error message: Access to XMLHttpRequest at 'http://127.0.0.1:9000/test' from origin 'http://127.0.0.1' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Despite several days of research, I don't know if I misconfigured Laravel, my IIS server or even my javascript request...
Could anyone help me with this bug?
Sincerely, Yann
Please or to participate in this conversation.