Skip to content

return_error does handle handle cors errors #4

Open
@itsramiel

Description

@itsramiel

At the end of ch3, the author explained how to handle cors errors and provide a custom error message back to the client.

The following code was added inside return_error to handle CorsForbidden cors errors, but the return_error never really gets called when there is such an error.

I believe it is because the recover filter is chained before adding the cors filters.

Sorry if I used the wrong terms. I am in the learning process

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions