title: S3 POST request to S3 with response 405
body: <p>I have the following CORS configuration for S3 in order to use one of my buckets as a static website hosting:</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;/CORSRule&gt;
  &lt;/CORSConfiguration&gt;
  </code></pre>
  
  <p>Then I have the following Edit Redirection Rules:</p>
  
  <pre><code>&lt;RoutingRules&gt;
      &lt;RoutingRule&gt;
      &lt;Condition&gt;
          &lt;KeyPrefixEquals&gt;abc&lt;/KeyPrefixEquals&gt;
      &lt;/Condition&gt;
      &lt;Redirect&gt;
          &lt;HostName&gt;myec2instance.com&lt;/HostName&gt;
      &lt;/Redirect&gt;
  &lt;/RoutingRule&gt;
  </code></pre>
  
  <p></p>
  
  <p>What I want to do is when S3 receives a POST to /abc redirects the request and request body to my ec2 instance. The redirection rule is working properly (I was able to test this by switching POST to a GET request) but for any reason S3 is returning HTTPResponse 405 when the request is a POST. Any ideas why?</p>