diff --git a/electron_inject/__init__.py b/electron_inject/__init__.py index d73b56e..f2ca504 100644 --- a/electron_inject/__init__.py +++ b/electron_inject/__init__.py @@ -109,7 +109,7 @@ def execute(cls, path, port=None): port = sock.getsockname()[1] sock.close() - cmd = "%s %s" % (path, "--remote-debugging-port=%d" % port) + cmd = "%s %s" % (path, "--remote-allow-origins=http://localhost:%d --remote-debugging-port=%d" % (port, port)) print (cmd) p = subprocess.Popen(cmd, shell=True) time.sleep(0.5)