-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Increasing maxHeaderSize for downstream requests #481
Comments
This is really a Netty/Spring Boot question and not a Spring Cloud Gateway question. Try
|
@ryanjbaxter Thanks. But wouldn't customizing through NettyServerConfiguration will alter the header size that cloud gateway will accept. I have issue when header size in downstream request exceeds 8KB. As in my case, cloud gateway injects some authentication related headers before forwarding the request to downstream services. I couldn't find any way to customize the HttpClient. |
We have support for the server side, @MANISHONLINE is this specifically for the client side? Can you share the exception? |
@MANISHONLINE DId you find a way to adjust the max size? |
@violetagg or @smaldini? |
Currently we do not provide a way for changing these settings for the client. |
Thanks reactor/reactor-netty#531 |
I have a use case where spring-cloud-gateway injects some headers in the request for authentication/authorization purpose. In some case, the size of these headers is going beyond 8KB which make gateway throw http 400 in those cases.
I did go through issue #402 and tried that option. But this seems related to changing the header size that gateway itself will accept and not what it will be routing to downstream services.
The downstream services in my case have max-http-headers-size as 0, tomcat based spring-boot applications, hence they aren't rejecting. Is there any configuration option or component that I can add to customize this behaviour?
The text was updated successfully, but these errors were encountered: