Pārlūkot izejas kodu

[frontend] Configure withCredentials for the global Axios instance

Johan Åhlén 4 gadi atpakaļ
vecāks
revīzija
4221264655
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      desktop/core/src/desktop/js/api/utils.ts

+ 1 - 1
desktop/core/src/desktop/js/api/utils.ts

@@ -54,7 +54,7 @@ export interface ApiFetchOptions<T, E = string> extends AxiosRequestConfig {
   ) => void;
 }
 
-const axiosInstance = axios.create();
+const axiosInstance = axios.create({ withCredentials: true });
 
 let baseUrl = (window as hueWindow).HUE_BASE_URL;
 let bearerToken: string | undefined;