A
A
Artem2020-03-16 22:29:51
JavaScript
Artem, 2020-03-16 22:29:51

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

1 answer(s)
N
Nadim Zakirov, 2020-03-16
@itwaze

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 question

Ask a Question

731 491 924 answers to any question