Skip to content

Commit

Permalink
webapp: Fix: WaitRetstartView showed basic auth dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
tbnobody committed Oct 25, 2024
1 parent 2a21e53 commit 6113e07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webapp/src/views/WaitRestartView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<script lang="ts">
import BasePage from '@/components/BasePage.vue';
import CardElement from '@/components/CardElement.vue';
import { authHeader } from '@/utils/authentication';
import { defineComponent } from 'vue';
export default defineComponent({
Expand All @@ -38,7 +39,7 @@ export default defineComponent({
const remoteHostUrl = '/api/system/status';
// Use a simple fetch request to check if the remote host is reachable
fetch(remoteHostUrl, { method: 'GET' })
fetch(remoteHostUrl, { headers: authHeader() })
.then((response) => {
// Check if the response status is OK (200-299 range)
if (response.ok) {
Expand Down

0 comments on commit 6113e07

Please sign in to comment.