美文网首页
踩坑:ajax请求 statue code =200 ,但是进了

踩坑:ajax请求 statue code =200 ,但是进了

作者: YZY君 | 来源:发表于2018-01-23 17:59 被阅读224次

ajax请求 statue code =200 ,但是进了error。
控制台会有报错

Failed to load http://shop.ruitukeji.cn:8504/index.php?m=Api&c=Goods&a=shipping&invoice_no=3346058740462&shipping_company=shentong&token=6001df7862e8dddcd9bc668304d2939e: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://10.10.10.50:8080' is therefore not allowed access.

服务器没有加上 Access-Control-Allow-Origin ,因为在本地服务器调试,跨域了。后来在线调试,ok。

相关文章

  • 踩坑:ajax请求 statue code =200 ,但是进了

    ajax请求 statue code =200 ,但是进了error。控制台会有报错 服务器没有加上 Acce...

  • Harris算子Python实现

    code statue log

  • 原生ajax

    同步方式 异步方式 status code readyState post请求带参数 get请求带参数 封装ajax

  • ajax踩坑

    嵌套使用如果嵌套的ajax请求的数据有依赖关系,同步执行会导致错误出现。 使用上述选项避免嵌套的同时执行。

  • postman断言记录

    postman 断言: 断言请求结果状态码:status code: Code is 200pm.test("St...

  • Cocos Creator 2.x 使用遇到的问题

    1、VS Code智能提示在CocosCreator游戏中踩坑 安装官方的“ 更新VS Code智能提示数据 ”,...

  • Ajax请求的数据绑定给组件

    用了一天的时间搞这个,踩坑不少 1.state这个对象内部可以是任意的数据类型2.ajax请求是异步进行的,所以数...

  • ajax

    Ajax 1 - 请求纯文本 Ajax 2 - 请求JSON数据 Ajax 3 - 请求Github接口 Ajax...

  • ajax检测用户登录状态

    后台服务器传输的信息image.png code 为http的请求码,200代表成功,200-300代表请求成功,...

  • fetch请求踩坑

    今天在帮同事找bug时,发现问题。前台请求到后台,后台通过HttpServletRequest获取用户sessio...

网友评论

      本文标题:踩坑:ajax请求 statue code =200 ,但是进了

      本文链接:https://www.haomeiwen.com/subject/cqosaxtx.html