async hates csrf

This commit is contained in:
Josh Warwick 2023-03-31 11:49:16 -07:00
parent ebbc578435
commit 66938e9e29

View File

@ -485,7 +485,6 @@ class AsyncGraphQLView(GraphQLView):
view._is_coroutine = coroutines._is_coroutine
return view
@method_decorator(ensure_csrf_cookie)
async def dispatch(self, request, *args, **kwargs):
try:
if request.method.lower() not in ("get", "post"):