From 7883310cbc32d2af26654b00bfca2eee0064a740 Mon Sep 17 00:00:00 2001 From: James Fenn Date: Sun, 11 Jan 2026 23:13:59 +0000 Subject: [PATCH] add request header to enable discoverability --- modules/playful-web/main.tf | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/modules/playful-web/main.tf b/modules/playful-web/main.tf index 492c650..6462b61 100644 --- a/modules/playful-web/main.tf +++ b/modules/playful-web/main.tf @@ -69,6 +69,19 @@ resource "fastly_service_vcl" "cdn" { name = "Generated by default compression policy" } + dynamic "header" { + for_each = var.noindex ? [] : [1] + content { + action = "set" + destination = "http.Playful-Enable-Discoverability" + ignore_if_set = false + name = "Pass header to enable discoverability in prod" + priority = 100 + source = "true" + type = "request" + } + } + header { action = "set" destination = "http.Strict-Transport-Security"