Skip to content

Commit abcfb25

Browse files
author
Gareth Redfern
committed
add withCredentials to apiClient axios config
1 parent 948631f commit abcfb25

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/services/API.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import store from "@/store/index";
1010

1111
export const apiClient = axios.create({
1212
baseURL: process.env.VUE_APP_API_URL + "/api",
13+
withCredentials: true, // required to handle the CSRF token
1314
});
1415

1516
/*

0 commit comments

Comments
 (0)