Add Access-Control-Allow-Origin to ProviderInfoView.

This commit is contained in:
Ignacio Fiorentino 2016-09-06 13:21:29 -03:00
parent 6cb706fe0f
commit a583648be2

View file

@ -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):