Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to hide api key in react

// .env

REACT_APP_API_KEY=your_api_key  <-- yes
API_KEY=your_api_key            <-- no

// Example (from 이준형's response):
REACT_APP_WEATHER_API_KEY=123456
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #hide #api #key #react
ADD COMMENT
Topic
Name
6+7 =