Unverified Commit 21460bec authored by noproto's avatar noproto Committed by GitHub
Browse files

Update amazon-s3.md (#1825)

CORS is now provided in JSON format on S3 console
parent 25654fde
...@@ -5,18 +5,24 @@ Set set the following _CORS Configuration_ to your bucket. ...@@ -5,18 +5,24 @@ Set set the following _CORS Configuration_ to your bucket.
XML format \(if using the old AWS console Interface\): XML format \(if using the old AWS console Interface\):
```markup ```markup
<?xml version="1.0" encoding="UTF-8"?> [
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> {
<CORSRule> "AllowedHeaders": [
<AllowedOrigin>*ROCKET_CHAT_DOMAIN*</AllowedOrigin> "*"
<AllowedMethod>PUT</AllowedMethod> ],
<AllowedMethod>POST</AllowedMethod> "AllowedMethods": [
<AllowedMethod>GET</AllowedMethod> "PUT",
<AllowedMethod>HEAD</AllowedMethod> "POST",
<MaxAgeSeconds>3000</MaxAgeSeconds> "GET",
<AllowedHeader>*</AllowedHeader> "HEAD"
</CORSRule> ],
</CORSConfiguration> "AllowedOrigins": [
"*ROCKET_CHAT_DOMAIN*"
],
"ExposeHeaders": [],
"MaxAgeSeconds": 3000
}
]
``` ```
JSON format \(if using the new AWS console Interface\): JSON format \(if using the new AWS console Interface\):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment