class ActionDispatch::AssumeSSL

that the request really is HTTPS.
middleware makes the server assume that the proxy already terminated SSL, and
This makes redirects and cookie security target HTTP instead of HTTPS. This
request will appear as though it’s HTTP instead of HTTPS to the application.
When proxying through a load balancer that terminates SSL, the forwarded
# Action Dispatch AssumeSSL

def call(env)

def call(env)
  env["HTTPS"] = "on"
  env["HTTP_X_FORWARDED_PORT"] = "443"
  env["HTTP_X_FORWARDED_PROTO"] = "https"
  env["rack.url_scheme"] = "https"
  @app.call(env)
end

def initialize(app)

def initialize(app)
  @app = app
end