Skip to content

Commit

Permalink
feature-058: CORS 오류 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
whistleJs committed Feb 11, 2024
1 parent 0357614 commit b94d9f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/apis/config/instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const axiosInstance = axios.create({ baseURL });

axiosInstance.interceptors.request.use((config) => {
config.withCredentials = true;
config.headers['Access-Control-Allow-Origin'] = '*';

if (localStorage.vino) {
const storage = JSON.parse(localStorage.vino);
Expand Down

0 comments on commit b94d9f4

Please sign in to comment.