add s3 example

This commit is contained in:
fyears
2022-02-12 00:37:22 +08:00
parent eafab8c5cc
commit 84df2d683f
2 changed files with 32 additions and 1 deletions
+31
View File
@@ -0,0 +1,31 @@
# How To Configure S3 CORS Rules
Thanks to [@NAL100 in the Discussion](https://github.com/fyears/remotely-save/discussions/28).
Please try this config:
```json
[
{
"AllowedHeaders": ["*"],
"AllowedMethods": ["GET", "PUT", "POST", "DELETE", "HEAD"],
"AllowedOrigins": [
"app://obsidian.md",
"capacitor://localhost",
"http://localhost"
],
"ExposeHeaders": [
"Content-Length",
"Content-Type",
"Connection",
"Date",
"ETag",
"Server",
"x-amz-delete-marker",
"x-amz-id-2",
"x-amz-request-id",
"x-amz-version-id"
]
}
]
```