docs(rails-security): restrict assume_ssl to an HTTPS-enforcing proxy

This commit is contained in:
Rockwell Windsor Rice committed 2026-11-08 09:15:30 -06:00
1 parent da713084fc
commit e2aee760ff
1 file changed
+1
+1
View File
@@ -27,6 +27,7 @@ decisions about which control to reach for, see the Ruby security rules —
# config/environments/production.rb
Rails.application.configure do
config.force_ssl = true
# Only use when all requests pass through a proxy that rejects or redirects HTTP.
config.assume_ssl = true # behind a proxy that terminates TLS
# Reject requests with unexpected Host headers.