Hello,

The important distinction here is that the link you provided (
https://code.google.com/p/google-api-javascript-client/wiki/CORS) is a
project that uses the new Google APIs, whereas the Photos API is a Google
Data API, the older version with difference semantics and abilities.

That said, there is a JS client library that probably works with the photos
API (I haven't tried it, but maybe I will give it a shot this weekend):
https://developers.google.com/gdata/docs/js

You might be able to solve your crossdomain issues with the cross domain
file that the Photos API provides for Flash, although I'm not sure how you
would work that into a JS client:
https://developers.google.com/picasa-web/docs/2.0/reference#Flash

The crossdomain.xml is located here:
https://photos.googleapis.com/data/crossdomain.xml

And you can use that same hostname for all the Photo API calls, as noted in
the link above.

Let me know if any of this works, or if I'm just making things up.

Please note that we don't allow reuse of the domain cookie for json
requests, so you'll need to provide oauth or other authentication for your
requests, but this is supported in the JS library referenced above.

Thanks,
-Mike


On Thu, Jan 31, 2013 at 1:17 PM, vncs <vinicius0...@gmail.com> wrote:

> hello all
>
> i've been searching around but stil haven't found (specially on PWA docs)
> a proper "CORS compliance" indication relating PWA api.
>
> i did manage though to imply this statement based on other google docs
> such as 
> this<https://code.google.com/p/google-api-javascript-client/wiki/CORS>(where
> it says that "Google APIs support CORS <http://www.w3.org/TR/cors/>
>  requests")
>
> on the other hand i have found some cases of  "XMLHttpRequest cannot load"
> due "Origin onnonnono is not allowed by Access-Control-Allow-Origin."
>
> does anyone have any clearer info on this? maybe a pointer to an
> "official" source?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Picasa Web Albums API" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-picasa-data-api+unsubscr...@googlegroups.com.
> To post to this group, send email to
> google-picasa-data-api@googlegroups.com.
> Visit this group at
> http://groups.google.com/group/google-picasa-data-api?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Picasa Web Albums API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-picasa-data-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-picasa-data-api@googlegroups.com.
Visit this group at http://groups.google.com/group/google-picasa-data-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to