Skip to content

Commit

Permalink
Add CORS for Azure Open AI
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinbuss committed Nov 9, 2023
1 parent 9f2c2a0 commit 3279de2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions code/terraform/storage.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 3279de2

Please sign in to comment.