If I have a Web API Controller in my MVC application and I am calling a GET request to it via jQuery $ajax, how can I validate the call to make sure it is coming from my application?
Is it something where I need to check the IP it is coming from? Can I use the AntiForgeryToken?
I basically want the API Controller to only allow requests from my application, not from someone else who just knows the endpoint. I don't want people to be able to replicate the API calls.