Browse Source

fix: request entity too large

master
qilei0529 4 years ago
parent
commit
9b00a57e81
  1. 2
      packages/cli/src/utils/server/index.js

2
packages/cli/src/utils/server/index.js

@ -3,7 +3,7 @@ const bodyParser = require('body-parser');
const createServer = (port = 3500) => {
const app = express();
app.use(bodyParser.json());
app.use(bodyParser.json({ limit: '50mb' }));
app.use(bodyParser.urlencoded({ extended: false }));
app.use((req, res, next) => {
res.header('Access-Control-Allow-Origin', '*');

Loading…
Cancel
Save