[devtools] allow cross-origin requests for qunit
authorRémi Cardona <remi.cardona@logilab.fr>
Thu, 25 Sep 2014 17:38:51 +0200
changeset 9991 3e7f1e9f3adc
parent 9989 cfb6e9dab902
child 9992 3905682ece11
[devtools] allow cross-origin requests for qunit We have a mix of file:// html and http:// ajax calls. Which we should at some point fix to all be http, but. Related to #4294727.
devtools/qunit.py
--- a/devtools/qunit.py	Mon Sep 15 17:24:18 2014 +0200
+++ b/devtools/qunit.py	Thu Sep 25 17:38:51 2014 +0200
@@ -111,6 +111,7 @@
     all_js_tests = ()
 
     def setUp(self):
+        self.config.global_set_option('access-control-allow-origin', '*')
         super(QUnitTestCase, self).setUp()
         self.test_queue = Queue()
         class MyQUnitResultController(QUnitResultController):