From 7ee19d79c33ccf32eadbbd5354c46b7a342560bc Mon Sep 17 00:00:00 2001 From: Diego Barreiro Date: Fri, 12 Apr 2019 14:07:57 +0200 Subject: [PATCH] FIX: CSP URLs --- plugin.rb | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/plugin.rb b/plugin.rb index eed9f9a..ef620d7 100755 --- a/plugin.rb +++ b/plugin.rb @@ -21,17 +21,4 @@ after_initialize do Discourse::Application.routes.append do get '/ads.txt' => "adstxt#index" end - - if !SiteSetting.content_security_policy_script_src.split('|'.freeze).include?("http://cdn.carbonads.com") - SiteSetting.content_security_policy_script_src = SiteSetting.content_security_policy_script_src+'|http://cdn.carbonads.com' - end - if !SiteSetting.content_security_policy_script_src.split('|'.freeze).include?("https://cdn.carbonads.com") - SiteSetting.content_security_policy_script_src = SiteSetting.content_security_policy_script_src+'|https://cdn.carbonads.com' - end - if !SiteSetting.content_security_policy_script_src.split('|'.freeze).include?("http://srv.carbonads.net") - SiteSetting.content_security_policy_script_src = SiteSetting.content_security_policy_script_src+'|http://srv.carbonads.net' - end - if !SiteSetting.content_security_policy_script_src.split('|'.freeze).include?("https://srv.carbonads.net") - SiteSetting.content_security_policy_script_src = SiteSetting.content_security_policy_script_src+'|https://srv.carbonads.net' - end end