diff --git a/code/terraform/storage.tf b/code/terraform/storage.tf index fd4954c..d5e05e0 100644 --- a/code/terraform/storage.tf +++ b/code/terraform/storage.tf @@ -16,14 +16,14 @@ resource "azurerm_storage_account" "storage" { container_delete_retention_policy { days = 7 } - cors_rule { - allowed_headers = ["x-ms-blob-type"] - allowed_methods = ["PUT"] - allowed_origins = ["https://*.azuredatabricks.net"] - exposed_headers = [""] - max_age_in_seconds = 1800 + cors_rule { # Required for Azure Open AI + allowed_headers = ["*"] + allowed_methods = ["GET", "OPTIONS", "POST", "PUT"] + allowed_origins = ["*"] + exposed_headers = ["*"] + max_age_in_seconds = 200 } - cors_rule { + cors_rule { # Required for Azure ML allowed_headers = ["*"] allowed_methods = ["GET", "HEAD"] allowed_origins = ["https://mlworkspace.azure.ai", "https://ml.azure.com", "https://*.ml.azure.com"]