Browse Source

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.
pull/203/head
decoder.id 1 year ago
committed by GitHub
parent
commit
c635422dd0
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      src/views/index.html

2
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 }};

Loading…
Cancel
Save