DEV Community

baraa aboshi
baraa aboshi

Posted on

question about laravel 9 and react

hello everyone i am using laravel 9 and react and i keep getting cors error this is the error message :
Access to XMLHttpRequest at 'http://127.0.0.1:8000/addCompany' from origin 'http://localhost:5173' has been blocked by CORS policy: Cannot parse Access-Control-Allow-Headers response header field in preflight response.
i already added a middleware to handle cors but its not working for this one so how to solve this issue forever in my laravel-react app

Top comments (0)