mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-02-22 06:20:33 +03:00
async hates csrf
This commit is contained in:
parent
ebbc578435
commit
66938e9e29
|
@ -485,7 +485,6 @@ class AsyncGraphQLView(GraphQLView):
|
||||||
view._is_coroutine = coroutines._is_coroutine
|
view._is_coroutine = coroutines._is_coroutine
|
||||||
return view
|
return view
|
||||||
|
|
||||||
@method_decorator(ensure_csrf_cookie)
|
|
||||||
async def dispatch(self, request, *args, **kwargs):
|
async def dispatch(self, request, *args, **kwargs):
|
||||||
try:
|
try:
|
||||||
if request.method.lower() not in ("get", "post"):
|
if request.method.lower() not in ("get", "post"):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user