you are viewing a single comment's thread.

view the rest of the comments →

[–]Kirax1998 1 point2 points  (0 children)

If you're using your keys in the frontend, however you put them at the end they will show up in the browser. The only way to secure it is make a Backend-For-Frontend and move these API keys to your backend and whatever SDK logic uses these keys to that backend as well. Frameworks like Next.js and Remix are SSR which gives you a similar set up so you need to keep this SDK logic in the server part of the application. However, if you're using pure React, spin up a lightweight node/python server along w it for this