title: How would I make it so my API is only accessible through my application (Javascript and PHP)?
body: <p>I'm currently creating my first API. I know how to setup all the endpoints and do what I want with them. The issue I'm having is that I don't want just anyone to be able to visit <code>site.com/api/example</code> and get data back from it. What methods/concepts are available to make sure that only my application is able to access the API. I'm going to want to POST and GET these endpoints using both Javascript and PHP.</p>
  
  <p>Any help at all on this would be greatly appreciated, thanks!</p>