Skip to content

CORS Plugin is global and does not selectively apply to routes #63

Description

@ebramanti

What version of Elysia is running?

1.2.25

What platform is your computer?

Darwin 24.3.0 arm64 arm

What steps can reproduce the bug?

When initializing the CORS plugin, regardless of where you apply it in the middleware chain it applies to all routes.

I want to be able to selectively apply CORS to certain routes, and not have it apply to other routes.

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

No response

Have you try removing the node_modules and bun.lockb and try again yet?

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions