Skip to content

before_handler on middlewares not called for OPTIONS requests #967

@CircuitCoder

Description

@CircuitCoder

before_handler seems to not be invoked during OPTIONS requests.

We're upgrading from an very old version of crow (>6 years old) which was before CORSHandler came into existence, so we had to handle CORS headers ourselves. We did this by adding these headers in the before_handler, which is not effective after the upgrade.

I'm reading crow's code, but haven't been able to find out what caused this behavior. Is this the intended behavior?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionIssue can be closed by providing information

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions