mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-29 01:01:11 +03:00
allow access to *
This commit is contained in:
@@ -66,10 +66,8 @@ export class App {
|
|||||||
this.app.use(express.json({ limit: '50mb' }))
|
this.app.use(express.json({ limit: '50mb' }))
|
||||||
this.app.use(express.urlencoded({ limit: '50mb', extended: true }))
|
this.app.use(express.urlencoded({ limit: '50mb', extended: true }))
|
||||||
|
|
||||||
// Allow access from ui when yarn run dev
|
// Allow access from *
|
||||||
if (process.env.NODE_ENV !== 'production') {
|
this.app.use(cors())
|
||||||
this.app.use(cors({ credentials: true, origin: 'http://localhost:8080' }))
|
|
||||||
}
|
|
||||||
|
|
||||||
const upload = multer({ dest: `${path.join(__dirname, '..', 'uploads')}/` })
|
const upload = multer({ dest: `${path.join(__dirname, '..', 'uploads')}/` })
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user