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)
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:
contextResolverprop, which takes a func of the type(url) => contextJson