Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

remove augur CSP from everywhere since we can call it from everywhere of the page

bsatarnejad06a9ad02c2fd
diff --git a/app/controllers/custom_actions_controller.rb b/app/controllers/custom_actions_controller.rb
index 3c9a9eeb267..a0554ef45d4 100644
--- a/app/controllers/custom_actions_controller.rb
+++ b/app/controllers/custom_actions_controller.rb
@@ -30,7 +30,6 @@
class CustomActionsController < ApplicationController
include EnterpriseTrialHelper
- before_action :augur_content_security_policy
before_action :require_admin
before_action :require_enterprise_token
diff --git a/app/controllers/enterprises_controller.rb b/app/controllers/enterprises_controller.rb
index a4ff929711e..8bd85948988 100644
--- a/app/controllers/enterprises_controller.rb
+++ b/app/controllers/enterprises_controller.rb
@@ -31,7 +31,6 @@ class EnterprisesController < ApplicationController
layout 'admin'
menu_item :enterprise
- before_action :augur_content_security_policy
before_action :chargebee_content_security_policy
before_action :youtube_content_security_policy
before_action :require_admin
diff --git a/app/controllers/placeholder_users_controller.rb b/app/controllers/placeholder_users_controller.rb
index 25937a917ed..5fe5764d3d8 100644
--- a/app/controllers/placeholder_users_controller.rb
+++ b/app/controllers/placeholder_users_controller.rb
@@ -31,7 +31,6 @@
class PlaceholderUsersController < ApplicationController
include EnterpriseTrialHelper
layout 'admin'
- before_action :augur_content_security_policy
before_action :authorize_global, except: %i[show]
before_action :find_placeholder_user, only: %i[show
diff --git a/app/helpers/enterprise_trial_helper.rb b/app/helpers/enterprise_trial_helper.rb
index 7e4f4dc4d83..ea8ab4cb731 100644
--- a/app/helpers/enterprise_trial_helper.rb
+++ b/app/helpers/enterprise_trial_helper.rb
@@ -1,9 +1,4 @@
module EnterpriseTrialHelper
- def augur_content_security_policy
- append_content_security_policy_directives(
- connect_src: [OpenProject::Configuration.enterprise_trial_creation_host]
- )
- end
def chargebee_content_security_policy
script_src = %w(js.chargebee.com)