Skip to content

Commit

Permalink
Chore: axios 기본 설정 추가
Browse files Browse the repository at this point in the history
- withCredentials -> true
  • Loading branch information
sscoderati committed Mar 11, 2024
1 parent 53e0158 commit 954e535
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/apis/axios.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import axios from "axios";
import useAuthStore from "@/store/AuthStore.tsx";

axios.defaults.withCredentials = true;

export const axiosAPI = axios.create({
baseURL:
process.env.NODE_ENV === "development"
Expand Down

0 comments on commit 954e535

Please sign in to comment.