Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add GET method to CORS
jxltomfec1fae77225
diff --git a/saleor/graphql/views.py b/saleor/graphql/views.pyindex 1d884ff54e..55e377aa5d 100644--- a/saleor/graphql/views.py+++ b/saleor/graphql/views.py@@ -60,7 +60,7 @@ class GraphQLView(View):# Add access control headersresponse['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