authorization: allow trusted cors IPs on ports other than 80
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
92de4b75ee
commit
7c89756263
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue