Skip to content

Allow changing default options for express.json() middleware #126

@mauro-sterpin

Description

@mauro-sterpin

I've ran into an issue where the default body size limit of 100kb (https://expressjs.com/en/api.html#express.methods) is too small for my usecase. Especially when trying to send a file - the middleware always returns the PayloadTooLargeError error.

It would be nice if there was a way to provide custom configuration to the express.json middleware.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions