Beginner with sp js api here.

$pnp.sp.crossDomainWeb(addinweb, hostweb).lists.getByTitle("Sites").items.get().then(function(result) {

I can see it does make the request but it's returning an empty array. This is within an add-in, so it is a request from the add-in web to the host web. What beginner mistake am I making?

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.