0

error image

When I put rate limiting on my server, and when the rate exceeds, the preflight request fails. So, code execution stops, and the interceptor error is also not shown.

Is there any way to handle it in the Axios interceptor?

 api.interceptors.response.use(
  res => res,
  err => {
    }
  }
);
0

1 Answer 1

1

Axios posts preflight request only in development mode in production mode it does not puts preflight request , that's why you don't need to handle that

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.