Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uppy-s3_multipart
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
uppy-s3_multipart
Commits
18e2e33f
Unverified
Commit
18e2e33f
authored
Jan 04, 2021
by
Mickael Kurmann
Committed by
GitHub
Jan 04, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update CORS example from XML to JSON (#17)
parent
33c7780d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
21 deletions
+33
-21
README.md
README.md
+33
-21
No files found.
README.md
View file @
18e2e33f
...
...
@@ -20,27 +20,39 @@ the bucket's CORS configuration. In the AWS S3 Console go to your bucket, click
on "Permissions" tab and then on "CORS configuration". There paste in the
following:
```
xml
<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration
xmlns=
"http://s3.amazonaws.com/doc/2006-03-01/"
>
<CORSRule>
<AllowedOrigin>
https://my-app.com
</AllowedOrigin>
<AllowedMethod>
GET
</AllowedMethod>
<AllowedMethod>
POST
</AllowedMethod>
<AllowedMethod>
PUT
</AllowedMethod>
<MaxAgeSeconds>
3000
</MaxAgeSeconds>
<AllowedHeader>
Authorization
</AllowedHeader>
<AllowedHeader>
x-amz-date
</AllowedHeader>
<AllowedHeader>
x-amz-content-sha256
</AllowedHeader>
<AllowedHeader>
content-type
</AllowedHeader>
<ExposeHeader>
ETag
</ExposeHeader>
</CORSRule>
<CORSRule>
<AllowedOrigin>
*
</AllowedOrigin>
<AllowedMethod>
GET
</AllowedMethod>
<MaxAgeSeconds>
3000
</MaxAgeSeconds>
</CORSRule>
</CORSConfiguration>
```
json
[
{
"AllowedHeaders"
:
[
"content-type"
,
"x-amz-content-sha256"
,
"x-amz-date"
],
"AllowedMethods"
:
[
"GET"
,
"POST"
,
"PUT"
],
"AllowedOrigins"
:
[
"https://my-app.com"
],
"ExposeHeaders"
:
[
"ETag"
],
"MaxAgeSeconds"
:
3000
},
{
"AllowedHeaders"
:
[],
"AllowedMethods"
:
[
"GET"
],
"AllowedOrigins"
:
[
"*"
],
"ExposeHeaders"
:
[],
"MaxAgeSeconds"
:
3000
}
]
```
Replace
`https://my-app.com`
with the URL to your app (in development you can
...
...
Write
Preview
Markdown
is supported
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