We want to read and update SP2013 list data from our purely client-side javascript create-react-app project. Our production build files (html and js) can be hosted in the same domain on SharePoint (perhaps in the SiteAssets library), but the issue is our dev server will run from localhost. What is the best way to access list data from our dev server which will not be on the same domain?

I found a guide here that suggested using an IFrame point to an aspx page on SharePoint that can then use PostMessage to push the data back to our app. Not sure if this is the best way. Unfortunately we can't do anything server side or use c#.

  • Why do you want to use jsom ? You can use ootb SharePoint rest apis to get data from list. Commented Aug 4, 2018 at 7:02
  • Updated my question Commented Aug 4, 2018 at 14:42

1 Answer 1


This solution worked perfectly: https://www.linkedin.com/pulse/getting-started-react-local-development-sharepoint-andrew-koltyakov/ . It sets up a node proxy server that is authenticated using node-sp-auth-config and can call the api cross domain.

Your Answer

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

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