Re:Why does Google prepend while(1); to their JSON responses?
by jbrackett on Monday December 30, 2013 @01:19PM
(#6985933)
After seeing this I went to see if AngularJS had anything built in to mitigate JSON hijacking and they do. It will strip ")]}',\n" off of json responses if included from the server.
http://docs.angularjs.org/api/ng.$http#description_security-...