Reason: missing token ‘xyz’ in CORS header ‘Access-Control-Allow-Headers’ from CORS preflight channel - HTTP 编辑
Reason
Reason: missing token ‘xyz’ in CORS header ‘Access-Control-Allow-Headers’ from CORS preflight channel
What went wrong?
The Access-Control-Allow-Headers
header is sent by the server to let the client know which headers it supports for CORS requests. The value of Access-Control-Allow-Headers
should be a comma-delineated list of header names, such as "X-Custom-Information
" or any of the standard but non-basic header names (which are always allowed).
This error occurs when attempting to preflight a header that is not expressly allowed (that is, it's not included in the list specified by the Access-Control-Allow-Headers
header sent by the server). To fix this, the server needs to be updated so that it allows the indicated header, or you need to avoid using that header.
See also
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论