title: Sending OAuth access token in Jquery Ajax request
body: <p>Following documentation i put together this simple request. Every time i run this request i still get a 401 Authorization Required. I know the access token is fine because i use the same token using get to populate my models and it works fine it's only when i use post and place my token in the request headers.</p>
  
  <p>Anyone else had this issue before? </p>
  
  <pre><code>     jQuery.ajax( {
          url: 'http://customer-server-2.dev/api/documents/add/.json',
          type: 'POST',
          data : {
               guid : $('.guid-input').val(),
               title : $('.title-input').val(),
               payload : $('.payload-input').val()
          },
          beforeSend : function( xhr ) {
              xhr.setRequestHeader( 'Authorization', 'BEARER ' +      app.AccessToken );
          },
          success: function( response ) {
              console.log(response);
          },
          error : function(error) {
              console.log(error);
          }
      } );
  </code></pre>
  
  <p>response header <br>
  HTTP/1.1 401 Authorization Required <br>
  Date: Wed, 08 Apr 2015 12:20:28 GMT <br>
  Server: Apache/2.2.26 (Unix) mod_fastcgi/2.4.6 mod_wsgi/3.4 Python/2.7.6 <br>
  PHP/5.5.10 mod_ssl/2.2.26 OpenSSL/0.9.8za DAV/2 mod_perl/2.0.8 Perl/v5.18.2 <br>
  Access-Control-Allow-Origin: * <br>
  Access-Control-Allow-Methods: POST, GET, PUT, OPTIONS, PATCH, DELETE <br>
  Access-Control-Allow-Headers: X-Accept-Charset,X-Accept,Content-Type, x-xsrf-token, Authorization <br>
  X-Powered-By: PHP/5.5.10 <br>
  WWW-Authenticate: Bearer realm="Service", error="invalid_request", error_description="The access token was not found." <br>
  Content-Length: 81 <br>
  Keep-Alive: timeout=5, max=97 <br>
  Connection: Keep-Alive <br>
  Content-Type: text/html <br></p>
  
  <p>request header <br>
  OPTIONS /api/documents/add/.json HTTP/1.1 <br>
  Host: customer-server-2.dev <br>
  Connection: keep-alive <br>
  Access-Control-Request-Method: POST <br>
  Origin: <a href="http://test-client-app.dev" rel="nofollow">http://test-client-app.dev</a> <br>
  User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2354.0 Safari/537.36 <br>
  Access-Control-Request-Headers: accept, authorization <br>
  Accept: <em>/</em> <br>
  Referer: <a href="http://test-client-app.dev/index.html" rel="nofollow">http://test-client-app.dev/index.html</a> <br>
  Accept-Encoding: gzip, deflate, sdch <br>
  Accept-Language: en-US,en;q=0.8 <br></p>