Skip to content

Commit be9c2fe

Browse files
committed
🚧 Add withCredentials: true
1 parent 67f5435 commit be9c2fe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/config/api.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import axios from 'axios'
22

33
const api = axios.create({
44
baseURL: 'http://localhost:5001/api',
5+
withCredentials: true,
56
})
67

78
api.interceptors.response.use(response => response, error => error.response)

0 commit comments

Comments
 (0)