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
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)