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

Опубликовано: 30 Март 2026
на канале: SPJeff
2,026
18

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!