[英]Amazon S3 CORS 405 response to Options
Here is my S3 Cors file: 这是我的S3 Cors文件:
<?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>
<AllowedMethod>PUT</AllowedMethod>
<AllowedMethod>DELETE</AllowedMethod>
<AllowedMethod>HEAD</AllowedMethod>
<MaxAgeSeconds>3000</MaxAgeSeconds>
<AllowedHeader>*</AllowedHeader>
</CORSRule>
</CORSConfiguration>
I cannot put Options for an allowed method. 我不能将选项设置为允许的方法。 I tried also with Cloudfront, but no luck.
我也尝试过Cloudfront,但没有运气。
This is my conf in Cloudfront: 这是我在Cloudfront中的配置文件:
Is there any simple way to give 200 for all Option methods in S3? 有什么简单的方法可以为S3中的所有Option方法赋予200?
OPTIONS
should be supported for AllowedMethod
http://docs.aws.amazon.com/cloudfront/latest/APIReference/API_AllowedMethods.html OPTIONS
应支持AllowedMethod
http://docs.aws.amazon.com/cloudfront/latest/APIReference/API_AllowedMethods.html
One of the following response headers: 以下响应标头之一:
Access-Control-Allow-Methods
Access-Control-Allow-Headers
Access-Control-Allow-Origin
is required to enable OPTIONS, check your config against this: http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-cors.html 需要启用OPTIONS,请对照以下选项检查您的配置: http : //docs.aws.amazon.com/apigateway/latest/developerguide/how-to-cors.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.