graphql-python / graphql-python/sanic-graphql

Handle Access-Control-Allowed-Headers in CORS preflight

未关闭
#4 4 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
148
派生
17
PR 合并指标
30 天内没有已合并 PR

描述

The CORS implementation added by the fix/preflight branch is incomplete. You must also respond to the headers requests. My client (graphiql on chrome) is trying to use a content-type header, and is therefore being rejected.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS#Access-Control-Allow-Headers

Also, kind of surprising that CORS is enabled by default. You may want to put a warning somewhere in the readme!

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。