# 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
Last Updated: 8/18/2023, 11:39:36 PM