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
Show 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
...
@@ -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
on "Permissions" tab and then on "CORS configuration". There paste in the
following:
following:
```
xml
```
json
<?xml version="1.0" encoding="UTF-8"?>
[
<CORSConfiguration
xmlns=
"http://s3.amazonaws.com/doc/2006-03-01/"
>
{
<CORSRule>
"AllowedHeaders"
:
[
<AllowedOrigin>
https://my-app.com
</AllowedOrigin>
"content-type"
,
<AllowedMethod>
GET
</AllowedMethod>
"x-amz-content-sha256"
,
<AllowedMethod>
POST
</AllowedMethod>
"x-amz-date"
<AllowedMethod>
PUT
</AllowedMethod>
],
<MaxAgeSeconds>
3000
</MaxAgeSeconds>
"AllowedMethods"
:
[
<AllowedHeader>
Authorization
</AllowedHeader>
"GET"
,
<AllowedHeader>
x-amz-date
</AllowedHeader>
"POST"
,
<AllowedHeader>
x-amz-content-sha256
</AllowedHeader>
"PUT"
<AllowedHeader>
content-type
</AllowedHeader>
],
<ExposeHeader>
ETag
</ExposeHeader>
"AllowedOrigins"
:
[
</CORSRule>
"https://my-app.com"
<CORSRule>
],
<AllowedOrigin>
*
</AllowedOrigin>
"ExposeHeaders"
:
[
<AllowedMethod>
GET
</AllowedMethod>
"ETag"
<MaxAgeSeconds>
3000
</MaxAgeSeconds>
],
</CORSRule>
"MaxAgeSeconds"
:
3000
</CORSConfiguration>
},
{
"AllowedHeaders"
:
[],
"AllowedMethods"
:
[
"GET"
],
"AllowedOrigins"
:
[
"*"
],
"ExposeHeaders"
:
[],
"MaxAgeSeconds"
:
3000
}
]
```
```
Replace
`https://my-app.com`
with the URL to your app (in development you can
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