I ran into the same issue, was able to fix it with the below config.
server.max-http-request-header-size: 40000