feature/IO-2885-IntelliPay-App-Postback-Support

- Replace/Remove body-parser with Expresses built in body parsing middleware
This commit is contained in:
Dave Richer
2025-04-01 12:20:50 -04:00
parent ba4da3e35c
commit 8e105f0b36
3 changed files with 2 additions and 4 deletions

View File

@@ -84,8 +84,8 @@ const SOCKETIO_CORS_ORIGIN_DEV = ["http://localhost:3333", "https://localhost:33
const applyMiddleware = ({ app }) => {
app.use(compression());
app.use(cookieParser());
app.use(bodyParser.json({ limit: "50mb" }));
app.use(bodyParser.urlencoded({ limit: "50mb", extended: true }));
app.use(express.json({ limit: "50mb" }));
app.use(express.urlencoded({ limit: "50mb", extended: true }));
app.use(cors({ credentials: true, exposedHeaders: ["set-cookie"] }));
// Helper middleware