fix: resolve Mixed Content (Failed to fetch) in hosted HTTPS environment via /api-wpp reverse proxy
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user