How do you hide an API?
Share
Talk Programming , Career, Mental Health, Talk Personal Finance ❤️ Post a query and receive responses ✅
Post a query and receive responses. Ask anything, Ask Mitra ❤️
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I hope these can help you:
How-do-I-hide-API-keys-in-a-web-development-or-in-production
how_do_i_hide_an_api_key
how_to_hide_api_key_in_my_opensource_project
What do you mean by hide an API?
You can architect your deployment and version control process so API keys and passwords won’t reach developers and version control server. I think it should be always done like that – but I often see project where it was done otherwise.
How we do that:
I mean of course API keys and passwords used from server side jobs and code (like some external paid services or AWS cloud keys or open auth secret keys etc.). JavaScript keys can’t be really hidden. Those can be obfuscated but usually no need to do that.
you mean hiding api keys or hiding api end point?
if you want to hide api keys then use environment variables and it you want to hide API endpoint then protect it with an API key so that the only with the API key can only access the endpoint