8👍
Configuring the following in S3 Bucket Permissions > CORS fixed the issue.
[
{
"AllowedHeaders": [
"Authorization"
],
"AllowedMethods": [
"GET"
],
"AllowedOrigins": [
"*"
],
"ExposeHeaders": [],
"MaxAgeSeconds": 3000
},
{
"AllowedHeaders": [
"*"
],
"AllowedMethods": [
"HEAD",
"GET",
"PUT",
"POST",
"DELETE"
],
"AllowedOrigins": [
"*"
],
"ExposeHeaders": [
"ETag",
"x-amz-meta-custom-header"
]
}
]
0👍
I remember i faced this issue before with Google Cloud Storage.
You have to make your bucket allow origin cross to your domain.
- How to order a Django Rest Framework ManyToMany related field?
- AttributeError: 'str' object has no attribute 'regex' django 1.9
- Sending CSRF Tokens via Postman
- How to access POST data inside tastypie custom Authentication
- How to test a model that has a foreign key in django?
Source:stackexchange.com