Skip to main content
I'm trying to use the Api directly on the front end, but I'm getting this CORS error strict-origin-when-cross-origin.

 

httpOptions = {
headers: new HttpHeaders({
'Content-Type': 'application/json',
'Authorization': 'Bearer ....',
'Access-Control-Allow-Origin': '*'
})
};

doest not Intercom apis  work in the client side?

Hi Felipe -- using our REST API on the client-side isn't supported and represents a significant security risk as the bearer token used to authenticate requests would be exposed. A CORS error is expected in this situation. The REST API should be used from your server.


Ty @Nick VZ 


Reply