Hide an API Key | JavaScript Tutorial

preview_player
Показать описание
‍🎓 NEW: Earn a professional certificate in web development from Meta Inc. (course links in card below) 👇

This tutorial shows you how to hide an API key from users on the frontend and in your backend source code using environment variables.
#javascript #javascript_tutorial #nodejs #api #webdevelopment #frontend #tutorial

⚡Web development professional certificates from Meta Inc.⚡
Рекомендации по теме
Комментарии
Автор

why did you start with static files then move to a react app? can you do one for static files that dont run a server?

frankish
Автор

Bro what if i use API url from inspector panel (HTTP//LOCALHOST:3000/API) and call it from my web app i can get response of weather API without needing any KEY. 😵

I'm not a backend guy but i think you exposed entire weather API while securing your key. 🥲
Am i wrong ? 😅

yogeshkadu
Автор

how can i secure my firebase api key then ?

JC-fdho