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

Reduce CSP errors in tests

Christophe Bliarda178ba945552
diff --git a/spec/support/shared/with_direct_uploads.rb b/spec/support/shared/with_direct_uploads.rb
index b5af23b5209..98f80f7c898 100644
--- a/spec/support/shared/with_direct_uploads.rb
+++ b/spec/support/shared/with_direct_uploads.rb
@@ -69,8 +69,8 @@ class WithDirectUploads
form_action = csp_config.form_action.dup
begin
- csp_config.connect_src = ["'self'", "test-bucket.s3.amazonaws.com"]
- csp_config.form_action = ["'self'", "test-bucket.s3.amazonaws.com"]
+ csp_config.connect_src << "test-bucket.s3.amazonaws.com"
+ csp_config.form_action << "test-bucket.s3.amazonaws.com"
example.run
ensure