Skip to content

Commit bf5039c

Browse files
committed
Remove unnecessary CORS rules and retain only GET method for bucket configuration
Signed-off-by: NogaNHS <[email protected]>
1 parent 66c4c52 commit bf5039c

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

infrastructure/buckets.tf

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,6 @@ module "ndr-document-pending-review-store" {
158158
cloudfront_arn = module.cloudfront-distribution-lg.cloudfront_arn
159159
enable_cors_configuration = true
160160
cors_rules = [
161-
{
162-
allowed_headers = ["*"]
163-
allowed_methods = ["POST", "PUT", "DELETE"]
164-
allowed_origins = [contains(["prod"], terraform.workspace) ? "https://${var.domain}" : "https://${terraform.workspace}.${var.domain}"]
165-
expose_headers = ["ETag"]
166-
max_age_seconds = 3000
167-
},
168161
{
169162
allowed_methods = ["GET"]
170163
allowed_origins = [contains(["prod"], terraform.workspace) ? "https://${var.domain}" : "https://${terraform.workspace}.${var.domain}"]

0 commit comments

Comments
 (0)