我的资源放在了一个域名路径下: http://game.xxxx.com ip地址是深圳的(112开头),不知为什么,会被转译到了一个北京服务器的ip下了(61开头)。项目中只有有几个资源是这种情况,其他的都是正常的(在域名路径下)。
chrome打出的报错log:
XMLHttpRequest cannot load http://61.49.58.163/AESd/N1tcNJkh41kWRV-i41O-4KoHcom/debug/gopher/res/image/effect_beatCat1.mp3. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://game.xxxx.com’ is therefore not allowed access.
请问这是什么原因呢?资源为何会被定位到别处去了呢?我没用cdn。
PS:
我的服务器用的是阿里云,真实域名地址暂时先隐藏了