From 7c8975626325f51f6dcf94b6bdcd22dbeb37d9b5 Mon Sep 17 00:00:00 2001 From: Arksine Date: Wed, 10 Mar 2021 20:34:01 -0500 Subject: [PATCH] authorization: allow trusted cors IPs on ports other than 80 Signed-off-by: Eric Callahan --- moonraker/authorization.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moonraker/authorization.py b/moonraker/authorization.py index 47e53bf..41735b1 100644 --- a/moonraker/authorization.py +++ b/moonraker/authorization.py @@ -208,7 +208,7 @@ class Authorization: else: # Check to see if the origin contains an IP that matches a # current trusted connection - match = re.search(r"^https?://([^/]+)$", origin) + match = re.search(r"^https?://([^/:]+)", origin) if match is not None: ip = match.group(1) try: