Skip to content
Snippets Groups Projects
Commit 65bd33b4 authored by Mark Yan's avatar Mark Yan
Browse files

fix: increase express json body size limit

parent 6e6e90fe
No related branches found
No related tags found
1 merge request!547fix: increase express json body size limit
......@@ -33,5 +33,4 @@ newman
.idea
# backup files
*.bak
*.bak
\ No newline at end of file
......@@ -40,7 +40,7 @@ sdms_ibm-deploy-devpri:
- app/sdms/**/*
sdms_ibm-test-py:
image: node
image: node:18
stage: integration
extends:
- .ibm-test-py
......
......@@ -75,7 +75,7 @@ export class Server {
this.app = express();
this.app.use(express.urlencoded({ extended: false }));
this.app.use(express.json());
this.app.use(express.json({ limit: '50MB' }));
this.app.disable('x-powered-by');
this.app.use(cors(this.corsOptions));
this.app.options('*', cors());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment