DEV Community

Cover image for How to solve error parsing HTTP request header in Spring Boot

How to solve error parsing HTTP request header in Spring Boot

Mateus Malaquias on February 13, 2024

TL;DR Just add a line like below in your application.properties file: server.max-http-header-size=64kb Enter fullscreen mode ...
Collapse
 
dagnelies profile image
Arnaud Dagnelies

What's in your headers to be so large?! 😯

Collapse
 
malaquiasdev profile image
Mateus Malaquias

Auth token, request trace id and others security things

Collapse
 
vishal_s_bc3e421a1b3e6c79 profile image
Vishal S

It is the problem with browser,Which is automatically sending you request with https instead of http.Try in different browsers.It will work for sure