I am using asp.net MVC to develop an application that will have ajax interactions. I have JsonResult methods in the controller returning my serialized json data. For example, when a request is executed at http://somesite.com/findwidgets/ mvc serializes the data as json and sends it back.
I use jQuery on the client side to process ajax requests and then manipulate the results. I have no problem getting the data, but I found that I can make http://somesite.com/findwidgets/ requests from the browser address bar and it will return json data as a download.
Also, how can I guarantee that others cannot just make requests and capture data using http://somesite.com/findwidgets/ ?
Is cross-domain the right topic here, or is it about other security issues?
thanks
source
share