Skip to content

Commit

Permalink
feature-059: API 요청 시 Client-Host 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
whistleJs committed Feb 12, 2024
1 parent fe5e7a4 commit 36a4af6
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 36a4af6

Please sign in to comment.