From 232d250186d1fd624cd252cb0c71e2452eafb54a Mon Sep 17 00:00:00 2001 From: Son NK Date: Mon, 2 Sep 2019 14:12:29 +0200 Subject: [PATCH] support 127.0.0.1 as well as localhost --- app/oauth/views/authorize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/oauth/views/authorize.py b/app/oauth/views/authorize.py index 4c587e8d..7fa4a168 100644 --- a/app/oauth/views/authorize.py +++ b/app/oauth/views/authorize.py @@ -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