Failed to load <service url>: Request header field x-ijt is not allowed by Access-Control-Allow-Headers in preflight response.

时间:2018-05-22 12:43:56   收藏:0   阅读:946

使用pycharm,tornado写了后台,仍然使用pycharm写了前端代码,运行后出现以下错误:

Failed to load <service url>: Request header field x-ijt is not allowed by Access-Control-Allow-Headers in preflight response.

跨域问题

解决

添加pycharm的Chrome扩展
技术分享图片

右键该扩展,点击菜单中的“选项”:
技术分享图片
填写后,应用。

再次访问,该错误消失。

参考:CORS Control in JetBrains Chrome Extension

评论(0)
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!