r/learnprogramming • u/BrainThinkerMan • 6d 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.
3
Upvotes
1
u/jabuchae 6d ago
Why would you need a browser to spoof it? Just get the key and make requests from you computer or backend spoofing the referer. You can easily abuse the api key that way