'How to increase header size in Grails 4/tomcat (spring-boot)?

In Grails how can you increase the response header size?

We are using Grails 4. This is basically Spring boot. It uses an embedded Tomcat.



Solution 1:[1]

You can add this to application.yml with

server:
    max-http-header-size: 20000

Also check if you have any additional info in tokens, which is not needed.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Juliyanage Silva