If you're trying to do cross-domain HTTP requests using JavaScript's
XMLHttpRequest, you're not going to be successful.
I'm not sure why you'd want to use XMLHttpRequest for logging in,
anyway. Something like AuthSub or OAuth is more appropriate for a web
environment (for any environment, really).
http://code.google.com/apis/youtube/2.0/developers_guide_protocol_authentication.html
Cheers,
-Jeff Posnick, YouTube API Team
groups.google.com/group/youtube-api-gdata | apiblog.youtube.com |
@YouTubeDev
On Jan 9, 2:54 pm, CWONG1 <cw97...@gmail.com> wrote:
> I am currently writing a YouTube like web application and ran into some
> problem with authentication. I tried using the old ClientLogin api and I
> kept getting the following error:
>
> XMLHttpRequest cannot loadhttps://wwww.google.com/accounts/ClientLogin?Email=....&Passwd=...&se...null is not allowed by Access-Control-Allow-Origin.
>
> Any idea on how I can solve this issue?
--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.
No comments:
Post a Comment