From f62882a71ece199a7d8a15314cbc6073b76a1a8d Mon Sep 17 00:00:00 2001 From: Chris Ashton Date: Fri, 18 Oct 2024 11:20:59 +0100 Subject: [PATCH] Fix hosts regex See https://github.com/alphagov/contacts-admin/pull/1483#issuecomment-2421660720 --- config/environments/production.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index a75ece3a..1f447a64 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -85,7 +85,7 @@ # Enable DNS rebinding protection and other `Host` header attacks. config.hosts = [ - /contacts-admin\..*gov.uk?/, + /contacts-admin\..*\.gov.uk$/, ] # Skip DNS rebinding protection for the default health check endpoint.