javascript - How can I read and write OData calls in a secure way? (not vulnerable to CSRF for example?) -
what secure way open odata read/get endpoint without risks csrf attacks this one?
i haven't looked @ source, how msft odata library compare jquery in regard:
odata designed prevent json-hijacking attack described in link returning objects json results, makes payload invalid javascript program , such won't executed browser.
this independent of whether use datajs or jquery. haven't looked @ exact result jquery, know datajs "unwrap" results more natural-looking result, without artificial top-level objects.
in particular, wcf data services implementation .net doesn't support jsonp out of box, although there couple of popular simple solutions add it. @ point, though, you've opted allowing data seen other domains, shouldn't done user-sensitive data.
Comments
Post a Comment