gpt4 book ai didi

amazon-web-services - aws s3 的预检响应无效(重定向)

转载 作者:行者123 更新时间:2023-12-04 01:51:23 24 4
gpt4 key购买 nike

我正在尝试将图像上传到我的 Amazon S3 存储桶。但是我一直收到这个 CORS 错误,即使我已经正确设置了 CORS 配置。这是我的 CORS 配置:

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

我将不胜感激。

最佳答案

我发现这个问题在几个小时后自行解决了。

关于amazon-web-services - aws s3 的预检响应无效(重定向),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52852612/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com