Add CORS fix to userinfo view.
This commit is contained in:
parent
a583648be2
commit
68d982369e
|
@ -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'
|
||||
|
||||
|
|
Loading…
Reference in a new issue