Skip to content

Commit

Permalink
Add instructions for setting localstack bucket CORS
Browse files Browse the repository at this point in the history
  • Loading branch information
chennisden committed Aug 7, 2024
1 parent 9b741b5 commit e135368
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ And initialize the artifact bucket:

```
aws s3api create-bucket --bucket artifacts
aws s3api put-bucket-cors --bucket artifacts --cors-configuration file://local-cors-config.json
```

#### Admin Panel
Expand Down
13 changes: 13 additions & 0 deletions local-cors-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"CORSRules": [
{
"AllowedHeaders": ["*"],
"AllowedMethods": ["GET", "POST", "PUT", "HEAD", "DELETE"],
"AllowedOrigins": [
"http://127.0.0.1:3000",
"http://127.0.0.1:8080"
],
"ExposeHeaders": ["ETag"]
}
]
}

0 comments on commit e135368

Please sign in to comment.