Add CORS fix to userinfo view.
This commit is contained in:
parent
a583648be2
commit
68d982369e
1 changed files with 1 additions and 0 deletions
|
@ -171,6 +171,7 @@ def userinfo(request, *args, **kwargs):
|
||||||
dic.update(extra_claims.create_response_dic())
|
dic.update(extra_claims.create_response_dic())
|
||||||
|
|
||||||
response = JsonResponse(dic, status=200)
|
response = JsonResponse(dic, status=200)
|
||||||
|
response['Access-Control-Allow-Origin'] = '*'
|
||||||
response['Cache-Control'] = 'no-store'
|
response['Cache-Control'] = 'no-store'
|
||||||
response['Pragma'] = 'no-cache'
|
response['Pragma'] = 'no-cache'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue