Skip to content

Commit

Permalink
w/e
Browse files Browse the repository at this point in the history
  • Loading branch information
Ember-ruby committed Jan 22, 2024
1 parent 6472d4c commit a6d53f5
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions config/initializers/content_security_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit a6d53f5

Please sign in to comment.