我有一个问题:在一个域上 - IE发出跨域请求而不是正常请求。 请求非常简单:使用 jQuery - > $ .load()功能。 FireFox提出了这样的要求:
获取http://my.domain/ru/realty/edit HTTP / 1.1主机:my.domain User-Agent:Mozilla / 5.0(Windows NT 6.1; WOW64; rv:20.0) Gecko / 20100101 Firefox / 20.0接受:text / html, / ; Q = 0.01 Accept-Language:ru-RU,ru; q = 0.8,en-US; q = 0.5,en; q = 0.3 Accept-Encoding: gzip,deflate X-Requested-With:XMLHttpRequest Referer: http://my.domain/ Cookie: __utma = 87823819.1160716052.1363709577.1367502014.1367509134.33; __utma = 30543128.779215939.1367937097.1367937097.1367998627.2; __utmz = 70583128.1367937097.1.1.utmcsr =(直接)| utmccn =(直接)| utmcmd =(无); JSESSIONID = 9E43A28EBC2A1C1AE17CCCEDD6123222; __utmb = 90563128.4.8.1367598328775; __utmc = 90583128连接:keep-alive
但IE提出了这样的要求:
GET http://my.domain/ru/realty/edit HTTP / 1.1接受: / 来源:http://my.domain接受语言:ru-RU接受编码:gzip, deflate User-Agent:Mozilla / 5.0(兼容; MSIE 10.0; Windows NT 6.1; WOW64; Trident / 6.0)主机:my.domain DNT:1连接:Keep-Alive Pragma:no-cache
为什么IE会提出跨域请求?