title: Amazon AWS S3 'Invalid Argument--Unsupported Authorization Type' When Trying to Post a file to our bucket
body: <p>I'm new to web dev and this is a bit of a head scratcher. We have a part of our software that uploads documents to an Amazon cloud through a Rest api from our server-side code. </p>
  
  <p>I'm new to the company, but this part of the system seems like it's been around for a while, and only recently started acting up in the past two months. Can't seem to find any recent code changes that would affect it, though perhaps I just haven't looked hard enough.</p>
  
  <p>The api goes to make a post request to the S3 service, and gets back an 'InvalidArgument' error, with the message 'Unsupported Authorization Type.'</p>
  
  <p>The Authorization header looks like this: "Bearer [TokenID]".</p>
  
  <p>If I take out the Authorization header, as I've read elsewhere, I get back this error: 'MethodNotAllowed', 'The specified method is not allowed against this resource.'</p>
  
  <p>The particular bucket CORS settings look like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"&gt;
  &lt;CORSRule&gt;
  &lt;AllowedOrigin&gt;*&lt;/AllowedOrigin&gt;
  &lt;AllowedMethod&gt;GET&lt;/AllowedMethod&gt;
  &lt;AllowedMethod&gt;POST&lt;/AllowedMethod&gt;
  &lt;MaxAgeSeconds&gt;3000&lt;/MaxAgeSeconds&gt;
  &lt;AllowedHeader&gt;*&lt;/AllowedHeader&gt;
  &lt;/CORSRule&gt;
  &lt;/CORSConfiguration&gt;
  </code></pre>
  
  <p>Any help is greatly appreciated!</p>