mirror of
https://github.com/simple-login/app.git
synced 2024-09-30 05:31:30 +02:00
support 127.0.0.1 as well as localhost
This commit is contained in:
parent
5eb3f26286
commit
232d250186
@ -71,7 +71,7 @@ def authorize():
|
|||||||
# check if redirect_uri is valid
|
# check if redirect_uri is valid
|
||||||
# allow localhost by default
|
# allow localhost by default
|
||||||
hostname, scheme = get_host_name_and_scheme(redirect_uri)
|
hostname, scheme = get_host_name_and_scheme(redirect_uri)
|
||||||
if hostname != "localhost":
|
if hostname != "localhost" and hostname != "127.0.0.1":
|
||||||
if scheme != "https":
|
if scheme != "https":
|
||||||
return "Only https is supported", 400
|
return "Only https is supported", 400
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user