authorization: allow trusted cors IPs on ports other than 80

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Arksine 2021-03-10 20:34:01 -05:00
parent 92de4b75ee
commit 7c89756263
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ class Authorization:
else: else:
# Check to see if the origin contains an IP that matches a # Check to see if the origin contains an IP that matches a
# current trusted connection # current trusted connection
match = re.search(r"^https?://([^/]+)$", origin) match = re.search(r"^https?://([^/:]+)", origin)
if match is not None: if match is not None:
ip = match.group(1) ip = match.group(1)
try: try: