none
Call SharePoint REST service out side share point by javascript RRS feed

  • Question

  • Hello,

     I write the following java script on asp.net to connect to sharepoint rest service . I got error "access denied"

    var x = "http://[serverName]:9090/sites/Dhofar/en-us/kiosk/_api/web/lists/GetByTitle('HomeButtonsList')/items";

                 $.ajax({
                     url: encodeURI(x),
                     type: "GET",
                     contentType: "application/json;odata=verbose",
                     headers: {
                         "accept": "application/json;odata=verbose"
                     },
                     success: function (data) {
                         dfd.resolve(data);
                     },
                     error: function (jqXHR, textStatus, errorThrown) {
                         alert(jqXHR.statusText);
                     }
                 });

     how Can I solve it?


    ASk

    Wednesday, August 20, 2014 1:33 PM

Answers

All replies