From c635422dd008dff751da76b0b367ac3a64e72521 Mon Sep 17 00:00:00 2001 From: "decoder.id" <75539501+decoderid@users.noreply.github.com> Date: Thu, 10 Oct 2024 14:48:49 +0700 Subject: [PATCH] HTTPS & HTTP Problem Axios Request 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/index.html b/src/views/index.html index db9ad58..83321d0 100644 --- a/src/views/index.html +++ b/src/views/index.html @@ -120,7 +120,7 @@ } window.http = axios.create({ - baseURL: `${window.location.protocol}//${window.locaation.hostname}` + baseURL: `${window.location.protocol}//${window.location.hostname}` }); {{ if isEnableBasicAuth .BasicAuthToken }} window.http.defaults.headers.common['Authorization'] = {{ .BasicAuthToken }};