Skip to content

Commit

Permalink
BAU increase csp request size limit (#3800)
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
nlsteers authored Feb 12, 2024
1 parent 9c848eb commit 649f395
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ exports.bind = function (app) {

const cspMiddlewareStack = [
rateLimitMiddleware,
requestParseMiddleware(4000),
requestParseMiddleware(50000),
detectErrorsMiddleware,
captureEventMiddleware([
'www.facebook.com',
Expand Down

0 comments on commit 649f395

Please sign in to comment.