#api

Dealing with CORS Errors on Chatwoot Cloud Using Axios

TLDR Ulan encountered a CORS error while using Chatwoot cloud with Axios. sojan_official suggested using a bridge service to make api calls via a proxy.

Powered by Struct AI
4
5mo
Solved
Join the chat
Jul 04, 2023 (5 months ago)
Ulan
Photo of none
Ulan
11:40 AM
If I use Chatwoot cloud , then why I get CORS error?
how can you work from the front using axios with the endpoint app.chatwoot.com ?
Needle
Photo of md5-b3c47994ac990a44a1e2af0a47d56daa
Needle
11:40 AM
Thread automatically created by Ulan in #735079512701665280
Jul 10, 2023 (5 months ago)
sojan_official
Photo of md5-788237a2af5ff191b07ee9f215706ead
sojan_official
07:36 AM
Ulan we don't allow cross origin requests from js as it can open up potential security issues. you could use a bridge service and make the api calls via the proxy .