Skip to content

Commit

Permalink
Merge pull request #57 from teamViNO/feature-059
Browse files Browse the repository at this point in the history
feature-059: API 요청 시 Client-Host 추가
  • Loading branch information
whistleJs authored Feb 12, 2024
2 parents 83de28f + 36a4af6 commit efaa8ba
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 @@ -10,6 +10,7 @@ const axiosInstance = axios.create({ baseURL });
axiosInstance.interceptors.request.use((config) => {
config.withCredentials = true;
config.headers['Access-Control-Allow-Origin'] = '*';
config.headers['Client-Host'] = location.origin;

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

0 comments on commit efaa8ba

Please sign in to comment.