Description
Is your feature request related to a problem? Please describe.
The recent limitation to HTTP_MAX_HEADER_SIZE (1860352) to mitigate CVE-2018-12121 is a problem for us.
We use headers internally to communicate the users' session, and sometimes (legitimate) requests from "outside" exceeed the 8 kb limit, too.
Given that JWT-strings easily exceed 1kb, I think the 8kb limit might be too little for others, too.
Or referrer-headers (especially in combination with payment-systems back-and-forth) tend to exceed 1kb, too.
Describe the solution you'd like
Have the possibility to configure the HTTP_MAX_HEADER_SIZE — at least via configuration-flag (at node-compile-time).
Setting this at run-time or at startup time would be nice, too.
Is setting this at compile time already possible? I couldn't find the option or best way to do it for node-gyp/gyp.
Describe alternatives you've considered
patching nodejs at compile time… not a good idea.
Reduce headers, yeah, would be nice, but that means completely changing parts of our architecture.
Activity