From bc52d80f5b164c46bc90115be0b25f124502faea Mon Sep 17 00:00:00 2001 From: "raoha.rh" Date: Thu, 26 Dec 2024 17:36:15 +0800 Subject: [PATCH] fix: passing withCredentials --- client/app/services/TokensController.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/client/app/services/TokensController.ts b/client/app/services/TokensController.ts index 0ed3dd75..363a4f41 100644 --- a/client/app/services/TokensController.ts +++ b/client/app/services/TokensController.ts @@ -2,6 +2,7 @@ import axios from "axios"; import { LLMTokenInsert } from "../hooks/useToken"; const apiDomain = process.env.NEXT_PUBLIC_API_DOMAIN; +axios.defaults.withCredentials = true; export async function getTokenList() { const response = await axios.get(`${apiDomain}/api/user/llm_tokens`);