T
T
Tyu Vyacheslav2021-08-31 09:36:33
proxy
Tyu Vyacheslav, 2021-08-31 09:36:33

Problem with CORS, should I use webpack proxy REACT?

Good afternoon, please tell me, every other time a cors error comes up, we don’t see a solution on the back, I think to try proxy, is it worth it? won't it affect performance?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
neol, 2021-08-31
@neol

In combat, I would not use this, but for development you can try.
In my little experience, driving statics through JS turns out to be expensive, it’s better to resolve requests in nginx or something like that if you can’t master CORS.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question