Skip to content

Commit

Permalink
Safely match gov.uk at end of regex
Browse files Browse the repository at this point in the history
Co-authored-by: Bruce Bolt <[email protected]>
  • Loading branch information
ChrisBAshton and brucebolt authored Oct 18, 2024
1 parent 0ad4784 commit 39827eb
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 @@ -94,7 +94,7 @@

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

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

0 comments on commit 39827eb

Please sign in to comment.