Skip to content

Support the host application proxying context resolution through its backend #176

Description

@r-tae

Applications with an embedded <crate-editor> that have their own backend could resolve context for Crate-O, fixing CORS errors.

I can think of two ways:

  • support a contextResolver prop, which takes a func of the type (url) => contextJson
  • add an event for when a context fails due to CORS, so the host application can resolve it however they want (I think this is worse; more complex)

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions