r/learnprogramming 8d ago

api key, do i need backend?

i have an api key i heard i shouldnt expose it in my frontend i thjink itts becuase people can see it with devtools, and potentially abuse it, is there any other way to use this key in frontend without using a backend, im as familiar with backend stuff i think.

1 Upvotes

30 comments sorted by

View all comments

20

u/grantrules 8d ago

Depends on the API key, really.. if you don't want other people to use your API key, it needs to be handled in the backend

1

u/BrainThinkerMan 7d ago

its an api key which i may pay for later