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
+9
View File
@@ -4,4 +4,13 @@ import { defineConfig } from 'vite'
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
server: {
proxy: {
'/api-wpp': {
target: 'http://www.c2wpp.c2sistemas.com.br:22700',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api-wpp/, '')
}
}
}
})