Skip to content

Commit 296eb1f

Browse files
committed
set withCredentials to true
1 parent 553e78e commit 296eb1f

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ yarn-error.log*
2828
jspm_packages
2929

3030
# Serverless directories
31-
.serverless
31+
.serverless
32+
.webpack

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@
142142
"build": "node scripts/build.js",
143143
"build:server": "node scripts/build.server.js",
144144
"start:server:local": "node ./dist/server.js",
145-
"test": "node scripts/test.js"
145+
"test": "node scripts/test.js",
146+
"download:stats": "curl -o ./build/loadable-stats.json https://static.velog.io/loadable-stats.json"
146147
},
147148
"eslintConfig": {
148149
"extends": [

src/lib/api/apiClient.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const host =
66
: process.env.REACT_APP_API_HOST || '/';
77
const apiClient = axios.create({
88
baseURL: host,
9+
withCredentials: true,
910
});
1011

1112
export default apiClient;

0 commit comments

Comments
 (0)