Answer the question
In order to leave comments, you need to log in
How to overcome Access-Control-Allow-Origin error on server response 400?
The server is written in express. In front of it is Nginx. Requests go from the main domain to the api.domain.ru subdomain.
If the server does not respond with 200, then an error occurs:
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://domain.ru' is therefore not allowed access. The response had HTTP status code 401.
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