jmiguel2902 / gitiles

Automatically exported from code.google.com/p/gitiles
0 stars 0 forks source link

The JSON link at the bottom of https://android.googlesource.com/ is not valid JSON #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The JSON link at the bottom of  https://android.googlesource.com/ is not valid 
JSON

https://android.googlesource.com/?format=JSON

It starts with ")]}'" at the front of the file?  Maybe this is an attempt at 
JSONP gone wrong?

Original issue reported on code.google.com by esei...@chromium.org on 11 Jun 2013 at 6:13

GoogleCodeExporter commented 9 years ago
I should note that this is not particularly important to me.  (I'm not trying 
to use this part of the JSON api, just noting the error.)

Original comment by esei...@chromium.org on 11 Jun 2013 at 6:18

GoogleCodeExporter commented 9 years ago
This is an intentional feature to prevent cross-site scripting from reading the 
content of the JSON response by way of a <script>var data = </script><script 
src="https://android.googlesource.com/?format=JSON"> tag.

Original comment by sop@google.com on 11 Jun 2013 at 6:14