ty96 / toxni-theme

A ghost blog theme create by toxni.
25 stars 8 forks source link

主站HTTPS下访问pv.sohu.com/cityjson会出现跨域错误 #2

Open wangkezun opened 7 years ago

withlqs commented 7 years ago

我也发现这个情况了,这会导致Chrome下白屏。Edge暂时没问题。

wangkezun commented 7 years ago

@withlqs default.hbs下的http://pv.sohu.com/cityjson改成https://pv.sohu.com/cityjson就可以了。

ty96 commented 7 years ago

谢谢各位的讨论,顺便点个 Star 呗。😘

via Toxni's iPhone

On 21 Feb 2017, at 5:29 PM, Tyrael notifications@github.com wrote:

@withlqs default.hbs下的http://pv.sohu.com/cityjson改成https://pv.sohu.com/cityjson就可以了。

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

ddwolf commented 7 years ago

我这边http://pv.sohu.com/cityjson 报403错误; 我给改成了http://freegeoip.net/json/?callback=loc

<script type="text/javascript" >
  var returnCitySN ;
  function loc (pos) {
    returnCitySN = {cip:pos.ip, cid: pos.country_code, cname: pos.country_name };
  }
</script>
<script type="text/javascript" src="http://freegeoip.net/json/?callback=loc"></script>