Skip to content

Commit

Permalink
Enable HSTS for subdomains (#5295)
Browse files Browse the repository at this point in the history
Fixes TOB-RGM-4

Signed-off-by: Samuel Giddins <[email protected]>
  • Loading branch information
segiddins authored Dec 13, 2024
1 parent 0a81b21 commit b179be5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
config.force_ssl = true
config.ssl_options = {
hsts: { expires: 365.days, subdomains: false },
hsts: { expires: 365.days, subdomains: true },
redirect: {
exclude: ->(request) { request.path.start_with?('/internal') }
}
Expand Down
2 changes: 1 addition & 1 deletion config/environments/staging.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
config.force_ssl = true
config.ssl_options = {
hsts: { expires: 365.days, subdomains: false },
hsts: { expires: 365.days, subdomains: true },
redirect: {
exclude: ->(request) { request.path.start_with?('/internal') }
}
Expand Down

0 comments on commit b179be5

Please sign in to comment.