Skip to content

A platform for community discussion. Free, open, simple.

FIX: Ensure CSP is off for qunit

Blake Ericksonfc6b093dce22
diff --git a/lib/tasks/qunit.rake b/lib/tasks/qunit.rake
index 7bee6e15073..195ca2e7a51 100644
--- a/lib/tasks/qunit.rake
+++ b/lib/tasks/qunit.rake
@@ -88,6 +88,8 @@ task "qunit:test", [:timeout, :qunit_path] => :environment do |_, args|
exit 1
end
puts "Rails server is warmed up"
+ puts "Turning off CSP to allow qunit to run"
+ SiteSetting.content_security_policy = false
sh(cmd)