ananzhusen 1 éve
szülő
commit
cf78a2469f
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      src/http.ts

+ 1 - 1
src/http.ts

@@ -11,7 +11,7 @@ axios.defaults.withCredentials = false;
 axios.interceptors.request.use(
   (config: any) => {
     config.headers.Authorization =
-      'Bearer ' + ( getCookie('token') || '');
+      'Bearer ' + ( getCookie('token') || new URLSearchParams(location.search).get('token') || '');
 
     return config;
   },