Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add GET method to CORS

jxltomfec1fae77225
diff --git a/saleor/graphql/views.py b/saleor/graphql/views.py
index 1d884ff54e..55e377aa5d 100644
--- a/saleor/graphql/views.py
+++ b/saleor/graphql/views.py
@@ -60,7 +60,7 @@ class GraphQLView(View):
# Add access control headers
response['Access-Control-Allow-Origin'] = (
settings.ALLOWED_GRAPHQL_ORIGINS)
- response['Access-Control-Allow-Methods'] = 'POST, OPTIONS'
+ response['Access-Control-Allow-Methods'] = 'GET, POST, OPTIONS'
response['Access-Control-Allow-Headers'] = (
'Origin, Content-Type, Accept, Authorization')
return response