mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-23 19:00:32 +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.urlencoded({ limit: '50mb', extended: true }))
|
||||
|
||||
// Allow access from ui when yarn run dev
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
this.app.use(cors({ credentials: true, origin: 'http://localhost:8080' }))
|
||||
}
|
||||
// Allow access from *
|
||||
this.app.use(cors())
|
||||
|
||||
const upload = multer({ dest: `${path.join(__dirname, '..', 'uploads')}/` })
|
||||
|
||||
|
||||
Reference in New Issue
Block a user