Skip to content

[Question] How to set the accepted maximum header size? #4131

Closed
@rafaelvascc

Description

@rafaelvascc

Hi, on our application we get JWT access tokens from an external authentication server.
Some of our users have a lot of claims and roles, making the token really large. When we set it into the Authorization header and send the request to express we get a response saying the request header is too large.
Is there a way to increase the maximum request header size on express or even make it unlimited?
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions