DEV Community

Discussion on: How to hide your API endpoints while making an electron app?

Collapse
 
rhymes profile image
rhymes • Edited

I'm not sure there's a way, I could just setup a proxy or a network logger on my computer and see where your app connects to.

Why do you need to hide the endpoints?

A possible solution is to proxy your endpoints through a server

client ---> reverse proxy ---> real server 1 (real server 2)...
Collapse
 
sarthology profile image
Sarthak Sharma

Let's say I'm using an API from UNSPLASH. They give me two keys. I use a "dotenv" file to store these as environment variables. Even If I make a build of it, that .env file will be in my app folder and hence that will be exposed to users.