S3 POST request to S3 with response 405

后端 未结 2 1786
清歌不尽
清歌不尽 2021-01-05 10:59

I have the following CORS configuration for S3 in order to use one of my buckets as a static website hosting:



        
2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-05 11:50

    This isn't CORS related -- it's S3 itself. The S3 website endpoints are only equipped for GET and HEAD. Anything else should be denied before the redirection rules are checked.

    Website Endpoint

    Supports only GET and HEAD requests on objects.

    — http://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteEndpoints.html

提交回复
热议问题