2

I am working with SharePoint 2013 and I developed some app parts to show information in our intranet. These app parts get data from WEB API using jQuery, It works fine in Chrome, Firefox, but in Internet Explorer 11 does not work.

For example in IE11 when I run this sentence:

$.getJSON("webapi web root==>/ServiciosIntranetP/api/Exten2/ObtenerporParametro?Valortex=ali&Opcion=1", function (obj) {
   var tags = eval(obj);
   });

IE 11 Example

And in Chrome it works fine (in Firefox too):

Chrome example

I developed these app parts in a remote session in SharePoint server 2013 (Windows 2012). When I tested the application in the same server using IE11 it works fine, but the problem appears when I want to use these app parts from client machines. Other important information, my Web API services are hosted in a different IIS server where SharePoint 2013 is hosted.

Web API service: Windows Server 2008 with II7, server name: (srvurbde01) Sharepoint 2013: Windows Server 2012 server name: (srvurbde05) I would like to know what I can check to solve this issue, because it is very odd that IE11 works in the development server, but not from clients machines. As you can see in the examples this simple sentence does not work in the clients machines using IE11, but it works with Chrome and Firefox.

  • search for IE and CORS – Danny '365CSI' Engelman Oct 13 '15 at 19:51
  • Hi Danny, I have reviewed issues of IE and CORS, but all I read is about problems of IE9 or lower, because they does not use the XMLHttpRequest, but an alternative object named XDomainRequest. – Rafael RLD Oct 14 '15 at 4:04
  • Hi Danny, I have reviewed issues of IE and CORS, but all I read is about problems of IE9 or lower, because they does not use the XMLHttpRequest, but an alternative object named XDomainRequest. However I understand IE10 use XMLHttpRequest. In fact if I call the Web API I put in the example from a website developed in Visual Studi – Rafael RLD Oct 14 '15 at 4:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.