K
K
Kirill Plotnikov2019-02-22 05:34:07
CORS
Kirill Plotnikov, 2019-02-22 05:34:07

How to make browser stop swearing at cors request with credentials?

The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. - Issues the browser on each request.
The server configuration has origin : ' localhost :3000 ' and credentials : true
A request with cookies is sent from the front for subsequent authentication. which is already a post request, in which for some reason origin is reset to " * ", which, it seems to me, the browser does not like .. Actually, as you can see on the screenshots, the answer comes, but the browser does not process it! The question is how to solve this problem?
5c6f5f8ba7700020497681.png5c6f5f962f92c121635887.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question