How can I hide api key when inspecting on network?
minhokokocrunch opened this issue · 1 comments
minhokokocrunch commented
I didn't want to show api key for anyone who inspect the network on browser.
How can I hide it?
eegli commented
Generally, you don't need to. And you can't - since it's a client-side script. Just make sure that:
- Your key has the right restrictions applied, e.g. HTTP referrers. You can restrict the key to only work on specific domains. If someone tries to use your key outside of your domain, it will not work.
- Use different keys for different environments.