From a6d53f556f276868c8a18967e767146c35ccc8b9 Mon Sep 17 00:00:00 2001 From: Ember Date: Tue, 23 Jan 2024 03:19:31 +1100 Subject: [PATCH] w/e --- config/initializers/content_security_policy.rb | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/config/initializers/content_security_policy.rb b/config/initializers/content_security_policy.rb index c82e45adbe036f..e43e38786c471c 100644 --- a/config/initializers/content_security_policy.rb +++ b/config/initializers/content_security_policy.rb @@ -12,17 +12,6 @@ assets_host = policy.assets_host media_hosts = policy.media_hosts -base_host = Rails.configuration.x.web_domain - -assets_host = Rails.configuration.action_controller.asset_host -assets_host ||= host_to_url(base_host) - -media_host = host_to_url(ENV['S3_ALIAS_HOST']) -media_host ||= host_to_url(ENV['S3_CLOUDFRONT_HOST']) -media_host ||= host_to_url(ENV['AZURE_ALIAS_HOST']) -media_host ||= host_to_url(ENV['S3_HOSTNAME']) if ENV['S3_ENABLED'] == 'true' -media_host ||= assets_host - def sso_host return unless ENV['ONE_CLICK_SSO_LOGIN'] == 'true' return unless ENV['OMNIAUTH_ONLY'] == 'true'