Skip to content

Support configuring CORS per-actor on gateway #3539

@NathanFlurry

Description

@NathanFlurry

Currently, we accept all OPTIONS requests and let CORS be handled in onBeforeConnect on the actor. This is for two reasons:

  • WebSockets do not support CORS, so this should be implemented anyways
  • Waking an actor for an OPTIONS request does not make sense

We should enable configuration of CORS per-actor in order to prevent requests from reaching an actor without having to run onBeforeConnect on the actor itself. Consider extending this mechanism to WebSockets, even though this is non-standard behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions