Skip to content

Commit bb94ebf

Browse files
authored
Merge pull request #1183 from alphagov/ChrisBAshton-patch-2
Fix hosts regex
2 parents 2c8268a + 6fb140a commit bb94ebf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/environments/production.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282

8383
# Enable DNS rebinding protection and other `Host` header attacks.
8484
config.hosts = [
85-
/short-url-manager\..*gov.uk?/,
85+
/short-url-manager\..*\.gov.uk$/,
8686
]
8787

8888
# Skip DNS rebinding protection for the default health check endpoint.

0 commit comments

Comments
 (0)