fix: increase express.json limit to 50mb to allow saving QR codes with large custom logos
This commit is contained in:
+2
-1
@@ -17,7 +17,8 @@ const allowedOrigins = [
|
||||
].filter(Boolean);
|
||||
|
||||
app.use(cors({ origin: allowedOrigins, credentials: true }));
|
||||
app.use(express.json());
|
||||
app.use(express.json({ limit: '50mb' }));
|
||||
app.use(express.urlencoded({ limit: '50mb', extended: true }));
|
||||
app.use(cookieParser());
|
||||
|
||||
// Routes
|
||||
|
||||
Reference in New Issue
Block a user