title: How do i authenticate my api (node app) when being accessed by my UI?
body: <p>I've looked at various approaches to this but I'm yet to find one that is perfect for my set up. </p>
  
  <p>I have a UI that calls the api to present data to a user - the UI doesn't require someone to login and i don't want to authenticate every user. What i'm trying to do is simply protect the api because with the url to the api, anyone will be able to access the data.</p>
  
  <p>In my mind, i can create a password/ apikey of some sort and store that as an environment variable that is sent from the UI to the API whenever a request is made. On the API, that apikey/password is validated before allowing access to the api. </p>
  
  <p>Does this sound wise? Would you suggest something else? Have i missed anything. All thoughts are welcome.</p>