デフォルトでconfig.force_ssl = true
がコメントアウトされている。これをコメントインして有効にする。
config/environments/production.rb
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. config.force_ssl = true
参考
デフォルトでconfig.force_ssl = true
がコメントアウトされている。これをコメントインして有効にする。
config/environments/production.rb
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. config.force_ssl = true
参考