Skip to content

Commit

Permalink
Merge pull request #54 from teamViNO/feature-058
Browse files Browse the repository at this point in the history
feature-058: CORS 오류 해결
  • Loading branch information
whistleJs authored Feb 11, 2024
2 parents 2c70b56 + b94d9f4 commit 867df1d
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 867df1d

Please sign in to comment.