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

sets the content security policy

bsatarnejadce555179e7e1
diff --git a/config/initializers/secure_headers.rb b/config/initializers/secure_headers.rb
index 5ce5a0dbc85..df59aaed407 100644
--- a/config/initializers/secure_headers.rb
+++ b/config/initializers/secure_headers.rb
@@ -24,7 +24,7 @@ SecureHeaders::Configuration.default do |config|
default_src = %w('self') + OpenProject::Configuration.remote_storage_hosts
# Allow requests to CLI in dev mode
- connect_src = default_src
+ connect_src = default_src + [OpenProject::Configuration.enterprise_trial_creation_host]
if OpenProject::Configuration.sentry_frontend_dsn.present?
connect_src += [OpenProject::Configuration.sentry_host]
diff --git a/modules/team_planner/app/controllers/team_planner/team_planner_controller.rb b/modules/team_planner/app/controllers/team_planner/team_planner_controller.rb
index ce828e230fa..3eebbfcd447 100644
--- a/modules/team_planner/app/controllers/team_planner/team_planner_controller.rb
+++ b/modules/team_planner/app/controllers/team_planner/team_planner_controller.rb
@@ -5,7 +5,6 @@ module ::TeamPlanner
before_action :authorize, only: %i[index]
before_action :require_ee_token, only: %i[index]
before_action :redirect_to_first_plan, only: :index
- before_action :augur_content_security_policy, only: :upsale
menu_item :team_planner_view
diff --git a/modules/two_factor_authentication/app/controllers/two_factor_authentication/two_factor_settings_controller.rb b/modules/two_factor_authentication/app/controllers/two_factor_authentication/two_factor_settings_controller.rb
index c76b380bd8a..701b9504490 100644
--- a/modules/two_factor_authentication/app/controllers/two_factor_authentication/two_factor_settings_controller.rb
+++ b/modules/two_factor_authentication/app/controllers/two_factor_authentication/two_factor_settings_controller.rb
@@ -1,7 +1,6 @@
module ::TwoFactorAuthentication
class TwoFactorSettingsController < ApplicationController
include EnterpriseTrialHelper
- before_action :augur_content_security_policy
before_action :require_admin
before_action :check_enabled
before_action :check_ee