Skip to content

Commit

Permalink
feat: remove CORS configurations from app service and staging slot
Browse files Browse the repository at this point in the history
  • Loading branch information
alismx committed Aug 25, 2023
1 parent f6abbf2 commit c3d1d8e
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions ops/services/app_service/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,6 @@ resource "azurerm_linux_web_app" "service" {
ftps_state = "Disabled"
vnet_route_all_enabled = false

cors {
allowed_origins = []
support_credentials = false
}

// NOTE: If this code is removed, TF will not automatically delete it with the current provider version! It must be removed manually from the App Service -> Networking blade!
ip_restriction {
virtual_network_subnet_id = var.lb_subnet_id
Expand Down Expand Up @@ -98,11 +93,6 @@ resource "azurerm_linux_web_app_slot" "staging" {
ftps_state = "Disabled"
vnet_route_all_enabled = false

cors {
allowed_origins = []
support_credentials = false
}

# This application stack is what we use to deploy the docker image to the staging slot
# After it becomes healthy, we swap the staging slot with the production slot to complete the deployment
application_stack {
Expand Down

0 comments on commit c3d1d8e

Please sign in to comment.