Monday, July 30, 2012

[YouTube-API] uploads.gdata.youtube.com is not allowed CORS

Hi, i am using HTML5 file upload for uploading files to youtube and faced some problems

xhr.open('POST', url);
var fd = new FormData
fd.append("fileToUpload", file);
fd.append("token", token);
xhr.send(fd);

it seems to be method OPTIONS is not allowed

can somebody help me to sole it using a XMLHttpRequest() only?

--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To view this discussion on the web visit https://groups.google.com/d/msg/youtube-api-gdata/-/U4J7rg5b6m4J.
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