graphql-python / graphql-python/flask-graphql
CSRF Exemption?
未关闭
- 主要语言
- Python
- 星标
- 1.3k
- 派生
- 139
- PR 合并指标
- 30 天内没有已合并 PR
描述
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
)
)```
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。