Skip to content

Commit

Permalink
fix: passing withCredentials
Browse files Browse the repository at this point in the history
  • Loading branch information
RaoHai committed Dec 26, 2024
1 parent dd451dd commit bc52d80
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/app/services/TokensController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
Expand Down

0 comments on commit bc52d80

Please sign in to comment.