Skip to content

Commit 2ffa2b4

Browse files
committed
fix: updated cors config
1 parent a171465 commit 2ffa2b4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

infra/functions-python/main.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,11 @@ resource "google_storage_bucket" "functions_bucket" {
116116
resource "google_storage_bucket" "gbfs_snapshots_bucket" {
117117
location = var.gcp_region
118118
name = "${var.gbfs_bucket_name}-${var.environment}"
119+
cors {
120+
origin = ["*"]
121+
method = ["GET"]
122+
response_header = ["*"]
123+
}
119124
}
120125

121126
resource "google_storage_bucket_iam_member" "datasets_bucket_functions_service_account" {

0 commit comments

Comments
 (0)