File tree 2 files changed +8
-2
lines changed
locust/webui/src/components/StateButtons
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,10 @@ import { Button } from '@mui/material';
2
2
3
3
export default function ResetButton ( ) {
4
4
const onResetStatsClick = ( ) => {
5
- fetch ( ( window . baseUrl ? `${ window . baseUrl } /` : '' ) + 'stats/reset' ) ;
5
+ fetch (
6
+ ( window . baseUrl ? `${ window . baseUrl } /` : '' ) + 'stats/reset' ,
7
+ window . baseUrl ? { credentials : 'include' } : undefined ,
8
+ ) ;
6
9
} ;
7
10
8
11
return (
Original file line number Diff line number Diff line change @@ -9,7 +9,10 @@ export default function StopButton() {
9
9
} , [ ] ) ;
10
10
11
11
const onStopButtonClick = ( ) => {
12
- fetch ( ( window . baseUrl ? `${ window . baseUrl } /` : '' ) + 'stop' ) ;
12
+ fetch (
13
+ ( window . baseUrl ? `${ window . baseUrl } /` : '' ) + 'stop' ,
14
+ window . baseUrl ? { credentials : 'include' } : undefined ,
15
+ ) ;
13
16
setIsLoading ( true ) ;
14
17
} ;
15
18
You can’t perform that action at this time.
0 commit comments