From 97b5d120f8d317758e3c35525141900acdf75a2e Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Fri, 8 May 2020 11:26:26 +0200 Subject: [PATCH] providers/oauth: fix default cors settings --- passbook/providers/oauth/settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/passbook/providers/oauth/settings.py b/passbook/providers/oauth/settings.py index 88903380b..b8bd2e1a0 100644 --- a/passbook/providers/oauth/settings.py +++ b/passbook/providers/oauth/settings.py @@ -1,6 +1,8 @@ """passbook OAuth_Provider""" +from django.conf import settings + +CORS_ORIGIN_ALLOW_ALL = settings.DEBUG -CORS_ORIGIN_ALLOW_ALL = True REQUEST_APPROVAL_PROMPT = "auto" INSTALLED_APPS = [