Weird error with requests made from supabase functions
const deepgram = createClient(deepgramApiKey);const deepgram = createClient(deepgramApiKey);I'm getting this error, are requests from the supabase functions made as a browser? I don't really understand
[Error] DeepgramError: 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.
at new w (https://esm.sh/v135/@deepgram/sdk@3.0.1/esnext/sdk.mjs:3:5768)
at new P (https://esm.sh/v135/@deepgram/sdk@3.0.1/esnext/sdk.mjs:3:7735)
at get prerecorded [as prerecorded] (https://esm.sh/v135/@deepgram/sdk@3.0.1/esnext/sdk.mjs:3:9714)
at Object.handler (file:///home/deno/functions/processEpisode/index.ts:21:51)
at eventLoopTick (ext:core/01_core.js:183:11)
at async handleHttp (ext:sb_core_main_js/js/http.js:66:17) {
__dgError: true,
name: "DeepgramError"
}[Error] DeepgramError: 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.
at new w (https://esm.sh/v135/@deepgram/sdk@3.0.1/esnext/sdk.mjs:3:5768)
at new P (https://esm.sh/v135/@deepgram/sdk@3.0.1/esnext/sdk.mjs:3:7735)
at get prerecorded [as prerecorded] (https://esm.sh/v135/@deepgram/sdk@3.0.1/esnext/sdk.mjs:3:9714)
at Object.handler (file:///home/deno/functions/processEpisode/index.ts:21:51)
at eventLoopTick (ext:core/01_core.js:183:11)
at async handleHttp (ext:sb_core_main_js/js/http.js:66:17) {
__dgError: true,
name: "DeepgramError"
}