Allow all hosts in Vite config for reverse proxy
This commit is contained in:
parent
452da00064
commit
238a639b01
1 changed files with 1 additions and 0 deletions
|
|
@ -7,6 +7,7 @@ export default defineConfig({
|
||||||
server: {
|
server: {
|
||||||
port: 3000,
|
port: 3000,
|
||||||
open: true,
|
open: true,
|
||||||
|
allowedHosts: true,
|
||||||
proxy: {
|
proxy: {
|
||||||
'/api': {
|
'/api': {
|
||||||
target: 'http://localhost:5001',
|
target: 'http://localhost:5001',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue