Fix for force SSL issue with websockets
This commit is contained in:
parent
6426819b6f
commit
8459acd123
2 changed files with 3 additions and 1 deletions
|
@ -3,6 +3,8 @@ class ApplicationController < ActionController::Base
|
|||
# For APIs, you may want to use :null_session instead.
|
||||
protect_from_forgery with: :exception
|
||||
|
||||
force_ssl if: "ENV['LOCAL_HTTPS'] == 'true'"
|
||||
|
||||
# Profiling
|
||||
before_action do
|
||||
if (current_user && current_user.admin?) || Rails.env == 'development'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue