You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`The base URL provided does not begin with http, https, ws, or wss and will default to https as standard.`
43
+
);
44
+
}
45
+
46
+
/**
47
+
* Applying proxy to base URL.
48
+
*/
49
+
if(this.options.restProxy?.url){
50
+
/**
51
+
* Prevent client using a real API key when using a proxy configuration.
52
+
*/
35
53
if(this.key!=="proxy"){
36
54
thrownewDeepgramError(
37
55
`Do not attempt to pass any other API key than the string "proxy" when making proxied REST requests. Please ensure your proxy application is responsible for writing our API key to the Authorization header.`
"Due to CORS we are unable to support REST-based API calls to our API from the browser. Please consider using a proxy, and including a `restProxy: { url: ''}` in your Deepgram client options."
0 commit comments