From a583648be2f4b62951acce3e680150983964d1d6 Mon Sep 17 00:00:00 2001 From: Ignacio Fiorentino Date: Tue, 6 Sep 2016 13:21:29 -0300 Subject: [PATCH] Add Access-Control-Allow-Origin to ProviderInfoView. --- oidc_provider/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/oidc_provider/views.py b/oidc_provider/views.py index e2a2b31..8e6366a 100644 --- a/oidc_provider/views.py +++ b/oidc_provider/views.py @@ -203,7 +203,10 @@ class ProviderInfoView(View): dic['token_endpoint_auth_methods_supported'] = ['client_secret_post', 'client_secret_basic'] - return JsonResponse(dic) + response = JsonResponse(dic) + response['Access-Control-Allow-Origin'] = '*' + + return response class JwksView(View):