diff --git a/odoo/tests/common.py b/odoo/tests/common.py index 498386da75c..14d4eb5c8c0 100644 --- a/odoo/tests/common.py +++ b/odoo/tests/common.py @@ -975,6 +975,7 @@ class ChromeBrowser: '--remote-debugging-port': str(self.remote_debugging_port), '--no-sandbox': '', '--disable-gpu': '', + '--remote-allow-origins': '*', # '--enable-precise-memory-info': '', # uncomment to debug memory leaks in qunit suite # '--js-flags': '--expose-gc', # uncomment to debug memory leaks in qunit suite } @@ -1063,7 +1064,7 @@ class ChromeBrowser: raise unittest.SkipTest("Error during Chrome headless connection") def _open_websocket(self): - self.ws = websocket.create_connection(self.ws_url, enable_multithread=True) + self.ws = websocket.create_connection(self.ws_url, enable_multithread=True, suppress_origin=True) if self.ws.getstatus() != 101: raise unittest.SkipTest("Cannot connect to chrome dev tools") self.ws.settimeout(0.01)