graphql-python / graphql-python/flask-graphql

CSRF Exemption?

Open
#84 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.3k
Forks
139
PR merge metrics
No merged PRs in 30d

Description

With Django and Graphene users can do the following to exempt the graphql endpoint from CSRF authentication.
```
urlpatterns = [
path("admin/", admin.site.urls),
path("graphql", csrf_exempt(GraphQLView.as_view(graphiql=True, schema=schema))),
]
```

How can one do this with Flask-GraphQL?
```
app.add_url_rule(
'/graphql',
view_func=GraphQLView.as_view(
'graphql',
schema=schema,
graphiql=True

)
)```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.