support 127.0.0.1 as well as localhost

This commit is contained in:
Son NK 2019-09-02 14:12:29 +02:00
parent 5eb3f26286
commit 232d250186
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ def authorize():
# check if redirect_uri is valid
# allow localhost by default
hostname, scheme = get_host_name_and_scheme(redirect_uri)
if hostname != "localhost":
if hostname != "localhost" and hostname != "127.0.0.1":
if scheme != "https":
return "Only https is supported", 400