graphql-python / graphql-python/flask-graphql
CSRF Exemption?
Ouverte
- Langage dominant
- Python
- Étoiles
- 1.3k
- Forks
- 139
- Métriques de merge des PR
- Aucune PR mergée en 30 j
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
)
)```
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.