We need to proxy requests to Sendbird Desk from the JS SDK. After looking through the source code, it looks like there’s a method called setApiHost
for the Desk SDK, but I can’t find it documented anywhere. We’re thinking of using this to manually proxy API requests to Sendbird Desk by making a fake api endpoint on our server which just passes along the request to Sendbird, except properly passing it through our http proxy. Are there any downsides to doing this? Is the setApiHost
method safe to use? Will Sendbird start rate-limiting our servers’ IP or block the IP if there’s a large number of proxied API requests coming from our IP?
Alternatively, is there a way to have Sendbird Desk SDK use an http proxy? It looks like the Sendbird Desk JS SDK is using Axios for http requests, which does support http proxies, but the Desk SDK doesn’t provide any way to set the proxy
config param that I can see.
This is related to Overriding the apiHost/wsHost to proxy requests to Sendbird