Why does this cross-domain request work in other browsers but not IE9?

前端 未结 3 1224
醉话见心
醉话见心 2021-01-01 00:15

I have some Ajax code that is working in Safari, Chrome and Firefox but not in IE9.

The page is on http://foo.com/test.aspx and it\'s making an AJAX r

3条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-01 00:40

    If this works in the other browsers (which support CORS), then your SVC seems to already be supporting this, but to be sure, use Fiddler2 to see what is going on.

    The Access-Control-Allow-Origin header is used on the resource being requested, not on the page requesting it.

提交回复
热议问题