Skip to content
Discussion options

You must be logged in to vote
  1. You can indeed! However, our API doesn't currently support custom CORS origins. We have a new JavaScript SDK being minted to beta tomorrow (so you can try the alpha now) which will work in a client component on Next.js.

    In the readme for this version you'll find an explanation on the proxy support. You'll need a server component that can proxy the request to Deepgram. Any REST endpoints are subject to CORS restrictions. Effectively, you need to proxy the request to api.deepgram.com and return the results - you can also use this proxy to overwrite the Authorization header with the Deepgram API key, to prevent it from being exposed to the browser. I hope to build a demo of this proxy soon…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SteveK888
Comment options

Answer selected by SteveK888
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants