From 7136a15ade29690eb50eb923949db1b60a5e5cd0 Mon Sep 17 00:00:00 2001 From: Jone Wang Date: Sun, 9 Jan 2022 12:01:00 +0800 Subject: [PATCH] Allow safari-web-extension to access Aniki Connect. (#297) * Allow safari-web-extension to access Aniki Connect. * Fix typo. --- plugin/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/web.py b/plugin/web.py index 3d4697d..a682d20 100644 --- a/plugin/web.py +++ b/plugin/web.py @@ -178,7 +178,7 @@ class WebServer: elif 'http://localhost' in webCorsOriginList and ( originStr == 'http://127.0.0.1' or originStr == 'https://127.0.0.1' or # allow 127.0.0.1 if localhost allowed originStr.startswith('http://127.0.0.1:') or originStr.startswith('http://127.0.0.1:') or - originStr.startswith('chrome-extension://') or originStr.startswith('moz-extension://') ) : # allow chrome and firefox extension if localhost allowed + originStr.startswith('chrome-extension://') or originStr.startswith('moz-extension://') or originStr.startswith('safari-web-extension://') ) : # allow chrome, firefox and safari extension if localhost allowed corsOrigin = originStr allowed = True else: