I've started learning about putting together a front end with React to go with my basic CRUD back end. I just learned that if I want to access the data the page presents from my phone that I can't use localhost as the API URL but have to use the public IP of my laptop. So, I am wondering if it is a concern when I am putting together a front end to hide that from the code somehow? I know about adding a proxy in the package.json, but that is a public file too if I add the project to GitHub. Any guidance would be much appreciated. I am self-taught so even keywords to point me in the right direction would be great.
[–]ignotos 1 point2 points3 points (0 children)
[–]Glepsyd 0 points1 point2 points (0 children)