LarryDpk
发布于 2021-01-22 / 87 阅读
0

Request Header is too large in Springboot Web

Request Header is too large in Springboot Web

Issue Info

Sometimes we need to send lots of HTTP headers to the web application, and it may cause issues as below:

java.lang.IllegalArgumentException: Request header is too large

Or:

TooLongFrameException: HTTP header is larger than 8192 bytes

Solution

We just need add the configuration server.max-http-header-size in properties file:

server.max-http-header-size=80KB