Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 1 | Rev 209 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 208
Línea 29... Línea 29...
29
              'Content-Type': 'multipart/form-data'
29
              'Content-Type': 'multipart/form-data'
30
        }
30
        }
31
  });
31
  });
32
}
32
}
33
axios.interceptors.request.use(
33
axios.interceptors.request.use(
34
  (config) => {
34
  async (config) => {
-
 
35
    if (
-
 
36
      config.method === "post" ||
-
 
37
      config.method === "put" ||
-
 
38
      config.method === "delete"||
-
 
39
      config.method === "get"
-
 
40
    ) {
-
 
41
      const csrf = await Axios.get('/example');
-
 
42
      console.log('>>: csrf > ', csrf);
-
 
43
    }
35
    return config;
44
    return config;
36
  },
45
  },
37
  (error) => {
46
  (error) => {
38
    return Promise.reject(error);
47
    return Promise.reject(error);
39
  }
48
  }