diff --git a/csharp/App/Backend/S3/S3Cmd.cs b/csharp/App/Backend/S3/S3Cmd.cs index f3fd9160a..0851e5534 100644 --- a/csharp/App/Backend/S3/S3Cmd.cs +++ b/csharp/App/Backend/S3/S3Cmd.cs @@ -46,8 +46,19 @@ public class S3Cmd public async Task CreateBucket(String bucketName) { + var cors = @" + + + * + GET + HEAD + * + + "; var result = await Run(bucketName, "mb"); - return result.ExitCode == 0; + var setCors = await Run(bucketName, "PutBucketCors", cors); + + return result.ExitCode == 0 && setCors.ExitCode == 0; } public async Task DeleteBucket(String bucketName) diff --git a/csharp/App/Backend/db.sqlite b/csharp/App/Backend/db.sqlite index 2fcbf7c64..9a363a376 100644 Binary files a/csharp/App/Backend/db.sqlite and b/csharp/App/Backend/db.sqlite differ