For the complete documentation index, see llms.txt. This page is also available as Markdown.

Why does generateAuthToken hit a CORS error?

Two separate things are happening here

Two separate things are happening here:

  • Build failure after SDK setup: check for a duplicate package dependency added via SwiftPM and remove it.

  • CORS error on generateAuthToken: this endpoint is meant to be called from your backend, not the browser, so CORS errors from web origins are expected. Calling it server-side also keeps your API key from being exposed.

Last updated

Was this helpful?