cors question

Hello, is there a way to disable the self-hosted typebot's cors or allow another url besides its own?
8 Replies
Baptiste
Baptiste•3mo ago
What URL are you trying to query? Builder or viewer?
paulo.medeiros.
paulo.medeiros.•3mo ago
Is builder
Baptiste
Baptiste•3mo ago
Why would you ever want to query the builder API from the browser? You need to use a server for that
paulo.medeiros.
paulo.medeiros.•3mo ago
In this case, we log in and register with typebot making the request from another system, which is at another url, but we are having problems regarding cors
Baptiste
Baptiste•3mo ago
You should definitely have a server that consumes the Typebot API. You should not directly consume it from the browser 🙂 Otherwise, you are free to edit the Typebot's code to enable CORS but we won't do this on the official repository
paulo.medeiros.
paulo.medeiros.•3mo ago
In this case, we are trying to integrate typebot with our system. To do this, we need to automatically log the user into typebot, so we can forward the user directly to typebot without them needing to log in. The login would be done by our system, using the user's email In fact, it would be ideal to use APIs. We would have access to the tokens of registered users so we could do what we need. In fact, the biggest problem in using the API for this solution would be precisely having access to user tokens. Can you imagine a way out?
Baptiste
Baptiste•3mo ago
As I said, you are always free to edit the Typebot's code to enable CORS but we won't do this on the official repository
paulo.medeiros.
paulo.medeiros.•3mo ago