diff --git a/monkey/monkey_island/cc/ui/src/components/ui-components/IslandResetModal.tsx b/monkey/monkey_island/cc/ui/src/components/ui-components/IslandResetModal.tsx index ac7a8afd6..f5b47ac04 100644 --- a/monkey/monkey_island/cc/ui/src/components/ui-components/IslandResetModal.tsx +++ b/monkey/monkey_island/cc/ui/src/components/ui-components/IslandResetModal.tsx @@ -113,7 +113,14 @@ const IslandResetModal = (props: Props) => { }}) .then(res => { if (res.ok) { - return auth.authFetch('/api/island/mode', {method: 'PUT', body: '"unset"'}) + return auth.authFetch( + '/api/island/mode', + { + method: 'PUT', + headers: {'Content-Type': 'application/json'}, + body: '"unset"' + } + ) }}) .then(res => { if (!res.ok) {