Question

I'm trying to upload some files inside a S3 bucket with a POST request (using plupload).

I'm getting a 405 (Method Not Allowed)

The policy is as follow:

<?xml version="1.0" encoding="UTF-8"?>
  <CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
    <CORSRule>
      <AllowedOrigin>*</AllowedOrigin>
      <AllowedMethod>GET</AllowedMethod>
      <AllowedMethod>POST</AllowedMethod>
      <MaxAgeSeconds>3000</MaxAgeSeconds>
      <AllowedHeader>*</AllowedHeader>
    </CORSRule>
  </CORSConfiguration>

But the response headers are baffling:

Access-Control-Allow-Methods:GET, POST
Access-Control-Allow-Origin:*
Access-Control-Max-Age:3000
Allow:GET, DELETE, HEAD, PUT

The Access-Control-Allow-Methods looks fine, but the Allow does not.

I don't get why the Allow header doesn't contain POST and how to change it.

Any help would be really appreciated

Was it helpful?

Solution

Not sure what was the problem, probably a misconfiguration somewhere.

Fixed it by deleting everything, creating a new bucket and following the official plupload documentation.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top