我想通过 POST 方法将数据发送到 youtube。我写http.open("POST", myUrl, true); 在如下代码中
var myUrl = "https://gdata.youtube.com/action/GetUploadToken";
http.open("POST", myUrl, true);
http.setRequestHeader("Authorization", "AuthSub token=" + code);
http.setRequestHeader("GData-Version", 2);
http.setRequestHeader("X-GData-Key", "key="+dev_key);
http.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
但错误是
Request URL:https://gdata.youtube.com/action/GetUploadToken
Request Method:OPTIONS
Status Code:405 Method Not Allowed
请告诉我这里有什么问题