When axios sends a request header, the API requests twice and returns 200 and 302 respectively.

when axios sends a request header, the API requests twice, returning 200 and 302, respectively. How to solve this problem?

Mar.10,2021

can you post the network? if you describe it like this, you can only guess the problem.


are you calling across domains? Cross-domain will have one more OPTIONS request

Menu