0

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

https://localhost:44343/Pages/Default.aspx?SPHostUrl=http%3A%2F%2Fecontent&0319c41%2Eecontent%2Eelibrary%2Eapps%2Elocal%2FSharePointApp2%5Fsingeltest

How can I get list data using JavaScript or JSOM.

Please share the helpful code snippet.

0

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

| improve this answer | |

Your Answer

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

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