Open peterpolman opened 1 year ago
implemented the sdk in the dashboard app without any problem, but when I try to submit to the s3 bucket I get cors error
We probably have to whitelist our request urls as allowed origins in AWS interface. @peterpolman Please look at this next week!
@peterpolman you can find how to set the config here: https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/cors.html
@valeriagrazzini Added this config for the S3 bucket: local-thx-storage-bucket
and local-thx-private-storage-bucket
[
{
"AllowedHeaders": [
"*"
],
"AllowedMethods": [
"HEAD",
"GET",
"PUT",
"POST",
"DELETE"
],
"AllowedOrigins": [
"https://localhost:8082"
],
"ExposeHeaders": [
"ETag",
"x-amz-meta-custom-header"
]
}
]
As mentioned in the PR we need to provide proper authorization to these browser accessed S3 buckets. Lets follow up on this next sprint.