Answer the question
In order to leave comments, you need to log in
How to solve CORS issue in node js?
Good afternoon! I'm trying to make a request to a third party API via https.request() Browser throws a CORS error. However, when the request is made through the curl command, everything works. As far as I understand, it is the browser that adds headers to the request that trigger the cors protection. For php, it is recommended to send a request via curl on the server side, but in node js this does not work, as far as I understand, due to the fact that it executes the code in chromium. Please tell me how to send a request from node js so that it is not checked by the cors protection, and is it possible to do this at all
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