Skip to content

[request] Some mechanism to add CORS-rules to an endpoint/a router/everything. #31

Open
@megri

Description

@megri

Here's what I've found so far:

  • Adding a custom decorator won't work for OPTIONS-requests as the routes are tried before the decorators come into play.
  • Overriding the Main#defaultHandler seems to be the way forward but this feels very "low-level" and introduces some concern-splitting

I'm willing to do some legwork here but I'd like to know if you have any ideas on how this can best be solved.

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