diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 3de8f05f0..94730501d 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -3,5 +3,8 @@ class ApplicationController < ActionController::Base # For APIs, you may want to use :null_session instead. protect_from_forgery with: :exception - + def default_url_options + return { protocol: 'https' } if Rails.env.staging? || Rails.env.production? + {} + end end