0

When I access the first time the application, all is good. This it the init function:

axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
axios.defaults.xsrfCookieName = 'XTRN-TOKEN';
axios.defaults.withCredentials = true;
axios.interceptors.response.use(
  (response) => response,
  async (error) => {
    if (store == null) {
      store = (await storePromise).default;
    }
    const code = error.request && error.request.status ? error.request.status : null;

Code is null after few mins; I remove all local storage, session storage and cookies for this app but I still get some CORS issues. Nothing in logs:

enter image description here

What might be the problem here?

halfer
  • 19,824
  • 17
  • 99
  • 186
GPiter
  • 779
  • 1
  • 11
  • 24

0 Answers0