From 25bb8851e7c2fb1625239e648257fc2aecc78a8c Mon Sep 17 00:00:00 2001 From: Colin Saliceti Date: Fri, 29 Nov 2024 13:43:06 +0000 Subject: [PATCH] Remove leading slash in URL redirect The url_path_condition doc recommends against it --- domains/environment_domains/front_door_security_rules.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/domains/environment_domains/front_door_security_rules.tf b/domains/environment_domains/front_door_security_rules.tf index 26dbb59..73a08f3 100644 --- a/domains/environment_domains/front_door_security_rules.tf +++ b/domains/environment_domains/front_door_security_rules.tf @@ -16,7 +16,7 @@ resource "azurerm_cdn_frontdoor_rule" "security_txt" { conditions { url_path_condition { operator = "BeginsWith" - match_values = ["/.well-known/security.txt", "/security.txt"] + match_values = [".well-known/security.txt", "security.txt"] transforms = ["Lowercase"] } } @@ -43,7 +43,7 @@ resource "azurerm_cdn_frontdoor_rule" "thanks_txt" { conditions { url_path_condition { operator = "BeginsWith" - match_values = ["/.well-known/thanks.txt", "/thanks.txt"] + match_values = [".well-known/thanks.txt", "thanks.txt"] transforms = ["Lowercase"] } }