Why does Google prepend while(1); to their JSON responses?
stackoverflow.com
Why does Google prepend while(1); to their JSON responses?
1–10 of 120 posts
Re: Why does Google prepend while(1); to their JSON responses?
#2Re: Why does Google prepend while(1); to their JSON responses?
#3Re: Why does Google prepend while(1); to their JSON responses?
#4Why don't browsers strip cookies when they are doing cross domain javascript fetches?
It's interesting that today cross-domain sandboxing applies to almost everything except JavaScript. If I load an image cross domain and draw it into a canvas, the contents of that canvas are sandboxes, but I can cheerfully mix and match code across domains too.
Seems like it would be a good thing to do but it would break a ton of stuff.
Re: Why does Google prepend while(1); to their JSON responses?
#5Why don't browsers strip cookies when they are doing cross domain javascript fetches?
Re: Why does Google prepend while(1); to their JSON responses?
#6Re: Why does Google prepend while(1); to their JSON responses?
#7Why don't browsers strip cookies when they are doing cross domain javascript fetches?
Re: Why does Google prepend while(1); to their JSON responses?
#8I haven't worked with JSON like that before. Do JSON parsers properly ignore the stuff Google puts in, or do you have to strip it out before parsing?
> an AJAX request at mail.google.com
> will have full access to the text content,
> and can strip it away.Re: Why does Google prepend while(1); to their JSON responses?
#9Why don't browsers strip cookies when they are doing cross domain javascript fetches?