weixin_33744141 2012-06-17 15:43 采纳率: 0%
浏览 28

jQuery getJSON跨域

I'm trying to get the data with jQuery Cross Domain (on github).. but without success! I read that i must make a request jsonp, but I do not understand what is wrong..

http://jsfiddle.net/jzjVh/

Chrome interprets the file as Javascript.. IE9 except a warning because the file "was blocked due to mime type mismatch".. I do not even understand if there is a difference from .txt and .json.

  • 写回答

1条回答 默认 最新

  • weixin_33671935 2012-06-17 15:45
    关注

    And here we go again...
    You are fighting with http://en.wikipedia.org/wiki/Same_origin_policy.

    enter image description here
    While

    enter image description here

    Possible solution will be using a local proxy like http://developer.yahoo.com/javascript/howto-proxy.html

    enter image description here

    评论

报告相同问题?

悬赏问题

  • ¥15 luckysheet
  • ¥15 ZABBIX6.0L连接数据库报错,如何解决?(操作系统-centos)
  • ¥15 找一位技术过硬的游戏pj程序员
  • ¥15 matlab生成电测深三层曲线模型代码
  • ¥50 随机森林与房贷信用风险模型
  • ¥50 buildozer打包kivy app失败
  • ¥30 在vs2022里运行python代码
  • ¥15 不同尺寸货物如何寻找合适的包装箱型谱
  • ¥15 求解 yolo算法问题
  • ¥15 虚拟机打包apk出现错误