Microsoft cloud engineer - SharePoint, Office 365, Azure, DotNet, Angular, JavaScript.
Microsoft cloud engineer - SharePoint, Office 365, Azure, DotNet, Angular, JavaScript.

Call SharePoint Online (SPO) REST api from AngularJS (1x) Lite Server with PNP.js

Video and code below demonstrate how to call SharePoint Online (SPO) REST api from a http://localhost JavaScript project.

Here we have a simple AngularJS 1x to-do list saving JSON payload data to a SharePoint Online list hosted in Office 365.   Authentication is achieved with EditThisCookie and ModHeader chrome extensions.  By exporting cookies from a valid Office 365 session to the “chromecors” session we are authenticated and enable to execute REST apis.    ModHeader is used for “Origin : tenant.sharepoint.com” to provide source detail.

Enjoy.  Cheers!  

shades_smile

Video

Code

Reference

© Copyright 2016
@ SPJeff

Return to Top ▲Return to Top ▲