Answer the question
In order to leave comments, you need to log in
How to solve server request problem?
Hello. Faced trouble. Server requests fail. Throws a CORS error.
I tried to make a request with the help of a postman - everything is good. I looked that it has a default Host header, because of which I cannot make a request. On the back, cors is disabled by this library: https://github.com/fruitcake/laravel-cors
And now to the point? Where to dig? What's wrong? Who has guesses? Maybe a problem with nginx?
Answer the question
In order to leave comments, you need to log in
CORS is a security built into the browser.
It is the browser that blocks requests to another domain unless CORS headers are configured.
Accordingly, in order for the browser to skip requests, you need to configure CORS on the server.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question