My Provider-Hosted App published and hosted on IIS with https. The URL is like:


How can I get list data using JavaScript or JSOM.

Please share the helpful code snippet.

1 Answer 1


You need to do a cross domain call.

Refer: https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/access-sharepoint-data-from-add-ins-using-the-cross-domain-library

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.