mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-22 09:01:09 +03:00
fix(proxy): restrict proxy to exact /api routes only (#3456)
This commit is contained in:
@@ -11,7 +11,7 @@ export default defineConfig(async ({ mode }) => {
|
|||||||
const serverPort = parseInt(serverEnv?.['PORT'] ?? 3000)
|
const serverPort = parseInt(serverEnv?.['PORT'] ?? 3000)
|
||||||
if (!Number.isNaN(serverPort) && serverPort > 0 && serverPort < 65535) {
|
if (!Number.isNaN(serverPort) && serverPort > 0 && serverPort < 65535) {
|
||||||
proxy = {
|
proxy = {
|
||||||
'/api': {
|
'^/api(/|$).*': {
|
||||||
target: `http://${serverHost}:${serverPort}`,
|
target: `http://${serverHost}:${serverPort}`,
|
||||||
changeOrigin: true
|
changeOrigin: true
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user