DEV Community

Discussion on: How to hide API KEY in GitHub repo

Collapse
 
ptprashanttripathi profile image
Pt. Prashant tripathi

We can also restrict user from accessing config.js by using few line in .htaccess

Collapse
 
sphrases profile image
sphrases

I think htacces is considered insecure and the file can still be read through js

Thread Thread
 
ptprashanttripathi profile image
Pt. Prashant tripathi • Edited

ok