Skip to content

Commit 5a0b54f

Browse files
authored
fix(#2045): send credential cookies (i.e. session cookies) on ajax requests (#2046)
1 parent 084c2cc commit 5a0b54f

File tree

1 file changed

+1
-1
lines changed
  • spring-boot-admin-server-ui/src/main/frontend/utils

1 file changed

+1
-1
lines changed

spring-boot-admin-server-ui/src/main/frontend/utils/axios.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const redirectOn401 = (predicate = () => true) => error => {
2727

2828
};
2929

30-
const instance = axios.create({headers: {'Accept': 'application/json'}});
30+
const instance = axios.create({withCredentials: true, headers: {'Accept': 'application/json'}});
3131
instance.interceptors.response.use(response => response, redirectOn401());
3232
instance.create = axios.create;
3333

0 commit comments

Comments
 (0)