From 649f395bac53b8f356a201754a6d7bdde46979d4 Mon Sep 17 00:00:00 2001 From: Nathaniel Steers Date: Mon, 12 Feb 2024 14:34:56 +0000 Subject: [PATCH] BAU increase csp request size limit (#3800) - Chrome Reporting API can batch csp violation reports prior to sending, leading to larger than expected payload sizes. To ensure we are receiving all reports we need to increase the max payload size on the `/csp-report` endpoint --- app/routes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes.js b/app/routes.js index 2ab8267cc..67c40c3ac 100644 --- a/app/routes.js +++ b/app/routes.js @@ -67,7 +67,7 @@ exports.bind = function (app) { const cspMiddlewareStack = [ rateLimitMiddleware, - requestParseMiddleware(4000), + requestParseMiddleware(50000), detectErrorsMiddleware, captureEventMiddleware([ 'www.facebook.com',