Answer the question
In order to leave comments, you need to log in
CORS error Laravel. Why is my request not going through?
I'm learning to work with Laravel and trying to create my own API was not successful
Access to XMLHttpRequest at 'http://127.0.0.1:8000/api/heroes' from origin 'http://localhost:4200' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header contains multiple values '*, *', but only one is allowed.
GET http://127.0.0.1:8000/api/heroes net::ERR_FAILED
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question