From 68d982369e3383ced523f6f7cd883523a97493a2 Mon Sep 17 00:00:00 2001 From: Ignacio Fiorentino Date: Tue, 6 Sep 2016 15:37:23 -0300 Subject: [PATCH] Add CORS fix to userinfo view. --- oidc_provider/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/oidc_provider/views.py b/oidc_provider/views.py index 8e6366a..912c8fc 100644 --- a/oidc_provider/views.py +++ b/oidc_provider/views.py @@ -171,6 +171,7 @@ def userinfo(request, *args, **kwargs): dic.update(extra_claims.create_response_dic()) response = JsonResponse(dic, status=200) + response['Access-Control-Allow-Origin'] = '*' response['Cache-Control'] = 'no-store' response['Pragma'] = 'no-cache'