Skip to content

request help: cors plugin can not work with auth plugins #1528

Description

@ShiningRush

Issue description

Now our cors plugin work in header_filter phase, so if someone enables both auth plugin(such as key-auth or jwt-auth) and core plugin, then authenticate failed, the cors header will not append to header, it will cause browser raising a cors error and drop the response.

I think we should:

  • Change the core plugin work in rewrite phase (I will do it today)
  • Change auth plugins work in access phase, I think the authentication would better be doing in access phase, it is design for it.

Welcome to discuss.

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