{"id":1104,"date":"2013-10-28T13:55:47","date_gmt":"2013-10-28T13:55:47","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/webdev\/2013\/10\/28\/sending-a-cors-request-in-ie\/"},"modified":"2013-10-28T13:55:47","modified_gmt":"2013-10-28T13:55:47","slug":"sending-a-cors-request-in-ie","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/dotnet\/sending-a-cors-request-in-ie\/","title":{"rendered":"Sending a CORS Request in IE"},"content":{"rendered":"<p>From the time we added <a href=\"http:\/\/www.w3.org\/TR\/cors\/\">CORS<\/a>&nbsp;support for ASP.NET WEB API, we have seen many questions on its usage, including questions about sending cross-origin requests (<a href=\"http:\/\/en.wikipedia.org\/wiki\/Cross-Origin_Resource_Sharing\">CORS<\/a>) from IE. IE 10 and higher fully support using <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/ie\/hh673569(v=vs.85).aspx\">XMLHttpRequest<\/a>&nbsp;to send cross-origin requests. <a href=\"http:\/\/blogs.msdn.com\/b\/ie\/archive\/2012\/02\/09\/cors-for-xhr-in-ie10.aspx\">CORS for XHR in IE10<\/a>&nbsp; is a great blog post on this approach.<\/p>\n<p>CORS is also supported in IE 8\/9, however, in a different way. Instead of <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/ie\/hh673569(v=vs.85).aspx\">XMLHttpRequest<\/a>, an XDocumentRequest object is used to send cross-origin requests. Here&rsquo;s another good reading about it: <a href=\"http:\/\/blogs.msdn.com\/b\/ieinternals\/archive\/2010\/05\/13\/xdomainrequest-restrictions-limitations-and-workarounds.aspx\">http:\/\/blogs.msdn.com\/b\/ieinternals\/archive\/2010\/05\/13\/xdomainrequest-restrictions-limitations-and-workarounds.aspx<\/a>. If you&rsquo;re using jQuery, here&rsquo;s how to send CORS in IE 8\/9 <a href=\"http:\/\/stackoverflow.com\/questions\/10232017\/ie9-jquery-ajax-with-cors-returns-access-is-denied\">http:\/\/stackoverflow.com\/questions\/10232017\/ie9-jquery-ajax-with-cors-returns-access-is-denied<\/a><\/p>\n<p>Last, sending CORS request is not supported in IE 6\/7.<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>From the time we added CORS&nbsp;support for ASP.NET WEB API, we have seen many questions on its usage, including questions about sending cross-origin requests (CORS) from IE. IE 10 and higher fully support using XMLHttpRequest&nbsp;to send cross-origin requests. CORS for XHR in IE10&nbsp; is a great blog post on this approach. CORS is also supported [&hellip;]<\/p>\n","protected":false},"author":434,"featured_media":58792,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[197],"tags":[],"class_list":["post-1104","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aspnet"],"acf":[],"blog_post_summary":"<p>From the time we added CORS&nbsp;support for ASP.NET WEB API, we have seen many questions on its usage, including questions about sending cross-origin requests (CORS) from IE. IE 10 and higher fully support using XMLHttpRequest&nbsp;to send cross-origin requests. CORS for XHR in IE10&nbsp; is a great blog post on this approach. CORS is also supported [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/1104","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/users\/434"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/comments?post=1104"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/1104\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media\/58792"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media?parent=1104"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/categories?post=1104"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/tags?post=1104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}