Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
RocketChat
docs
Commits
21460bec
Unverified
Commit
21460bec
authored
Nov 28, 2020
by
noproto
Committed by
GitHub
Nov 28, 2020
Browse files
Update amazon-s3.md (#1825)
CORS is now provided in JSON format on S3 console
parent
25654fde
Changes
1
Hide whitespace changes
Inline
Side-by-side
guides/administrator-guides/file-upload/amazon-s3.md
View file @
21460bec
...
...
@@ -5,18 +5,24 @@ Set set the following _CORS Configuration_ to your bucket.
XML format
\(
if using the old AWS console Interface
\)
:
```
markup
<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<CORSRule>
<AllowedOrigin>*ROCKET_CHAT_DOMAIN*</AllowedOrigin>
<AllowedMethod>PUT</AllowedMethod>
<AllowedMethod>POST</AllowedMethod>
<AllowedMethod>GET</AllowedMethod>
<AllowedMethod>HEAD</AllowedMethod>
<MaxAgeSeconds>3000</MaxAgeSeconds>
<AllowedHeader>*</AllowedHeader>
</CORSRule>
</CORSConfiguration>
[
{
"AllowedHeaders": [
"*"
],
"AllowedMethods": [
"PUT",
"POST",
"GET",
"HEAD"
],
"AllowedOrigins": [
"*ROCKET_CHAT_DOMAIN*"
],
"ExposeHeaders": [],
"MaxAgeSeconds": 3000
}
]
```
JSON format
\(
if using the new AWS console Interface
\)
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment