From 57976063e54ccfc06a66e8dd6ac66f9fd65e6b8e Mon Sep 17 00:00:00 2001 From: "decoder.id" <75539501+decoderid@users.noreply.github.com> Date: Thu, 10 Oct 2024 14:45:29 +0700 Subject: [PATCH] Update index.html Instead of using .AppHost, there will be issues when using a domain, for example, Cloudflare HTTPS, while on the host side using HTTP requests. --- src/views/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/index.html b/src/views/index.html index 8f3c029..db9ad58 100644 --- a/src/views/index.html +++ b/src/views/index.html @@ -120,7 +120,7 @@ } window.http = axios.create({ - baseURL: {{ .AppHost }} + baseURL: `${window.location.protocol}//${window.locaation.hostname}` }); {{ if isEnableBasicAuth .BasicAuthToken }} window.http.defaults.headers.common['Authorization'] = {{ .BasicAuthToken }}; @@ -226,4 +226,4 @@ }).mount('#app') - \ No newline at end of file +