Skip to content

Commit

Permalink
f/fix cors issues
Browse files Browse the repository at this point in the history
  • Loading branch information
drspacemanphd committed Sep 17, 2023
1 parent 15d3a2e commit 58cd1a6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions infra/env/modules/s3/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,19 @@ resource "aws_s3_bucket_lifecycle_configuration" "image_submissions_lifecycle" {
}
}

resource "aws_s3_bucket_cors_configuration" "image_submissions_cors" {
bucket = aws_s3_bucket.image_submissions_bucket.id

cors_rule {
allowed_headers = ["*"]
allowed_methods = ["GET", "PUT", "POST"]
allowed_origins = [
"https://adopt-a-highway.drspacemanphd.com",
"https://dev-adopt-a-highway.drspacemanphd.com",
]
}
}



### Litter Images
Expand Down

0 comments on commit 58cd1a6

Please sign in to comment.