title: Posting to YouTube API with jQuery
body: <p>I am trying to post a request to the google authSub for youtube. I use jQuery for AJAX posts etc. When I make the POST I get a 405 error: "405 Method Not Allowed".</p>
  
  <p>Here is my js:</p>
  
  <pre><code>   $.ajax({
        type: 'POST',
        url: "https://www.google.com/accounts/AuthSubRequest",
        beforeSend: function(xhr){
           xhr.setRequestHeader('X-GData-Key', 'key="' + ytKey + '"');
        },
        success: function(oData){
           //alert(oData);
        },
        scope: 'http://gdata.youtube.com',
        alt: 'json',
        next: 'http://' + globalBrand + '/sitecreator/view.do',
        session: 1
     });
  </code></pre>
  
  <p>The page I am using in the API for this is <a href="http://code.google.com/apis/youtube/2.0/developers_guide_protocol_authsub.html" rel="nofollow noreferrer">here</a>.</p>
  
  <p>Here is what the error looks like:
  <img src="https://i.stack.imgur.com/YxUWI.png" alt="alt text"></p>