cors issue when using axios interceptors.
I am using axios for my api request and whenever I try to send the login request to API without using axios interceptors it work fine but when I add the interceptors it will have an cors error.
Here is my code with axios interceptor:
And I am trying to use this axios instance in login as below
Whenever I remove the interceptors code block it works without any issue but whenever I add it back it doesn't work. I have also tried to user login request as below:
But results in the same issue.
Here is my code with axios interceptor:
And I am trying to use this axios instance in login as below
Whenever I remove the interceptors code block it works without any issue but whenever I add it back it doesn't work. I have also tried to user login request as below:
But results in the same issue.

