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:
|
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:
|
||||||
|
|
Loading…
Reference in New Issue