php - Is there a way to securely know the originating server hosting an AJAX call? -
lets imagine site embeds javascript file using standard script tag pointing server b. next site makes jsonp or ajax request resource on server b. there anyway server b definitively know specific jsonp request originated user on site a, , not user on site spoofing http referrer.
the reason think there realm of possibility because site started communication it's embedding of server b's javascript. in way, couldn't original communication act security handshake, allowing subsequent calls pass through securely. because handshake made through insecure means doesn't prevent acting security handshake.
any ideas of how task can accomplished? every solution can think broken notion every element of ajax call can faked.
i read http://www.codinghorror.com/blog/2008/10/preventing-csrf-and-xsrf-attacks.html , detecting ajax in php , making sure request own website far tell focused on ensuring veracity of user , not veracity of referrer.
ajax on https if wanted configure server require mutual authentication.
Comments
Post a Comment