I've been reading about the JavaScript Client Library for Google Data Protocol and it seems that it can access any Google service that has a proper interface (Docs, Spreadsheets, Calendar etc.)
If I use this client in my own application hosted on my own domain, how does the js client library get around the same-origin-policy that seems to be violated? Is it because the client library code itself is hosted on the Google top level domain that this works?