Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/concerns/kas_cookie.rb')
-rw-r--r--app/controllers/concerns/kas_cookie.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/concerns/kas_cookie.rb b/app/controllers/concerns/kas_cookie.rb
index c66bf7c9e8c..06a4ee873f8 100644
--- a/app/controllers/concerns/kas_cookie.rb
+++ b/app/controllers/concerns/kas_cookie.rb
@@ -6,6 +6,7 @@ module KasCookie
included do
content_security_policy_with_context do |p|
next unless ::Gitlab::Kas::UserAccess.enabled?
+ next unless Settings.gitlab.content_security_policy['enabled']
kas_url = ::Gitlab::Kas.tunnel_url
next if URI(kas_url).host == ::Gitlab.config.gitlab.host # already allowed, no need for exception