Hello,
I have been working in SharePoint Site using JSOM to get information from subsites. These subsites do not have the same permissions.
So in the first page, we got Windows Authentication Popup when I tried to load elements from a subsite I do not have access to. So, this code is inside a try catch and also we are using defferred with .fail() function
deferredCallToJSOM.done(function (){
success();
}).fail(function () {
error();
});
So, would like to know how to avoid them. How to verify if I have access to the site without the Windows Authentication Popup.
Best regards,
Jose Luis