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:
What might be the problem here?