Skip to content

GOWA - WhatsApp REST API with support for UI, Multi Account, Webhooks, and MCP, and Chatwoot. Built with Golang for efficient memory use.

feat: HTTPS & HTTP Problem Axios Request (#203)

decoder.idef2604b18224
diff --git a/src/views/index.html b/src/views/index.html
index 8f3c0296..83321d08 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.location.hostname}`
});
{{ if isEnableBasicAuth .BasicAuthToken }}
window.http.defaults.headers.common['Authorization'] = {{ .BasicAuthToken }};
@@ -226,4 +226,4 @@
}).mount('#app')
</script>
</body>
-</html>
\ No newline at end of file
+</html>