Skip to content

Commit 00b12c3

Browse files
committed
setting cors for datasets bucket
1 parent 943f2a7 commit 00b12c3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

infra/batch/main.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ resource "google_storage_bucket" "datasets_bucket" {
7676
soft_delete_policy {
7777
retention_duration_seconds = local.retention_duration_seconds
7878
}
79+
cors {
80+
origin = ["*"]
81+
method = ["GET"]
82+
response_header = ["*"]
83+
}
7984
}
8085

8186
# Grant permissions to the service account to access the datasets bucket

0 commit comments

Comments
 (0)