Skip to content

Commit

Permalink
Add missing cors header
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik-zeglen committed Jul 23, 2020
1 parent c7c9ceb commit 9388834
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions saleor/graphql/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ def dispatch(self, request, *args, **kwargs):
response[
"Access-Control-Allow-Headers"
] = "Origin, Content-Type, Accept, Authorization"
response["Access-Control-Allow-Credentials"] = "true"
return response

def render_playground(self, request):
Expand Down

0 comments on commit 9388834

Please sign in to comment.