Skip to content

Commit 98f6083

Browse files
committed
Add Access-Control-Allow-Credentials header to axios
1 parent d60f916 commit 98f6083

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libs/axios.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const axios = Axios.create({
99
baseURL: process.env.NEXT_PUBLIC_BACKEND_URL,
1010
headers: {
1111
'X-Requested-With': 'XMLHttpRequest',
12+
'Access-Control-Allow-Credentials': 'true',
1213
},
1314
withCredentials: true,
1415
});

0 commit comments

Comments
 (0)