Onion service related changes to HTTPS handling (#15560)
* Enable secure cookie flag for https only * Disable force_ssl for .onion hosts only Co-authored-by: Aiden McClelland <me@drbonez.dev>
This commit is contained in:
		@@ -43,7 +43,7 @@ class ApplicationController < ActionController::Base
 | 
			
		||||
  private
 | 
			
		||||
 | 
			
		||||
  def https_enabled?
 | 
			
		||||
    Rails.env.production? && !request.path.start_with?('/health')
 | 
			
		||||
    Rails.env.production? && !request.path.start_with?('/health') && !request.headers["Host"].ends_with?(".onion")
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def authorized_fetch_mode?
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user