Answer the question
In order to leave comments, you need to log in
How to bypass CORS in JS request?
Good evening, please tell me who worked with CORS.
I filed the statistics on the coronavirus ncov.dev and while testing it on local I used a plug-in in the browser to disable cors, when it was necessary to deploy, the data didn’t load for me, an endless spinner was spinning, then I found a solution (as for me a crutch) to use before the link to the request “ cors-anywhere". It works, but the data appears with a delay, is there any way to avoid this crutch?
Answer the question
In order to leave comments, you need to log in
Proxy everything through your server, adding the necessary headers in parallel - there is no other way.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question