From ac1f9ac360138c7773774a61dd39da0e1d510425 Mon Sep 17 00:00:00 2001 From: Varun Dey Date: Mon, 24 Aug 2020 16:19:53 +0000 Subject: [PATCH] Fix grammar (#1027) --- docs/installation.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/installation.rst b/docs/installation.rst index 35272b0..3628163 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -85,7 +85,7 @@ To learn how to extend the schema object for your project, read the basic tutori CSRF exempt ----------- -If have enabled `CSRF protection `_ in your Django app +If you have enabled `CSRF protection `_ in your Django app you will find that it prevents your API clients from POSTing to the ``graphql`` endpoint. You can either update your API client to pass the CSRF token with each request (the Django docs have a guide on how to do that: https://docs.djangoproject.com/en/3.0/ref/csrf/#ajax) or you can exempt your Graphql endpoint from CSRF protection by wrapping the ``GraphQLView`` with the ``csrf_exempt`` decorator: