fix: resolve Mixed Content (Failed to fetch) in hosted HTTPS environment via /api-wpp reverse proxy

This commit is contained in:
2026-10-15 13:08:16 -03:00
parent bdb781ed01
commit 91eedc220b
6 changed files with 212 additions and 96 deletions
+17
View File
@@ -0,0 +1,17 @@
[build]
publish = "dist"
command = "npm run build"
# Proxy Reverso para a API WPPConnect C2 Sistemas
# Resolve o bloqueio de "Mixed Content" (Página HTTPS chamando API HTTP na porta 22700)
[[redirects]]
from = "/api-wpp/*"
to = "http://www.c2wpp.c2sistemas.com.br:22700/:splat"
status = 200
force = true
# Roteamento Single Page Application (SPA)
[[redirects]]
from = "/*"
to = "/index.html"
status = 200