Skip to content

Commit

Permalink
fix: CORS 에러
Browse files Browse the repository at this point in the history
  • Loading branch information
uiop5809 committed Nov 6, 2024
1 parent 539828f commit cf878e6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/apis/AxiosInstance.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ const tokenString = sessionStorage.getItem("token");
const token = tokenString ? JSON.parse(tokenString) : null;

const Axios = axios.create({

// eslint-disable-next-line no-undef
baseURL: import.meta.env.VITE_BASE_URL,

withCredentials: true,
headers: {
Authorization: `Bearer ${token?.loginState?.data?.accessToken}`,
"Content-Type": "application/json",
Expand Down

0 comments on commit cf878e6

Please sign in to comment.