Add CORS fix to userinfo view.

This commit is contained in:
Ignacio Fiorentino 2016-09-06 15:37:23 -03:00
parent a583648be2
commit 68d982369e

View file

@ -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'