Skip to content

CommonMiddlware for enabled-by-default middlewares #637

Description

@m4tx

Problem statement

The set of middlewares that we have enabled by default keeps growing (the latest one is #633). Eventually, the project template/boilerplate code will grow a lot.

Proposed solution

Let's create a "CommonMiddleware" (akin to Django's CommonMiddleware) that just consolidates the enabled-by-default middlewares.

We should also have a flag in config.toml that allows to enable or disable each child middleware from CommonMiddleware.

Alternatives considered

No response

Drawbacks

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions