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