Skip to content

Commit

Permalink
Merge pull request #2024 from alphagov/ChrisBAshton-patch-1
Browse files Browse the repository at this point in the history
Fix hosts regex
  • Loading branch information
ChrisBAshton authored Oct 18, 2024
2 parents f0f41c8 + f6ea641 commit 56ef9d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@

# Enable DNS rebinding protection and other `Host` header attacks.
config.hosts = [
/travel-advice-publisher\..*gov.uk?/,
/travel-advice-publisher\..*\.gov.uk$/,
]

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

0 comments on commit 56ef9d6

Please sign in to comment.