Skip to content

Commit

Permalink
🔥 Remove SSL redirect exemptions
Browse files Browse the repository at this point in the history
It turns out that HSTS is being enforced at the `va.gov` domain level,
so exempting these routes at the Rails middleware level is futile.
  • Loading branch information
jcroteau committed Jul 26, 2024
1 parent 130791a commit be7a4c7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 103 deletions.
27 changes: 0 additions & 27 deletions app/policies/ssl_redirect_exclusion_policy.rb

This file was deleted.

1 change: 0 additions & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@

# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
config.force_ssl = true
config.ssl_options = { redirect: { exclude: SslRedirectExclusionPolicy } }

# Use the lowest log level to ensure availability of diagnostic information
# when problems arise.
Expand Down
75 changes: 0 additions & 75 deletions spec/requests/ssl_redirects_spec.rb

This file was deleted.

0 comments on commit be7a4c7

Please sign in to comment.