Forum Discussion
Christophe Humbert
Jul 18, 2019Iron Contributor
Cross-domain request in SPFx
How can I make a cross-domain request in a Client Side Web Part built with the SharePoint Framework? My need is to access SharePoint 2016 data from a SharePoint 2016 site in another domain (same cred...
Jeroen Branders
Jul 22, 2019Copper Contributor
You can use the Dev PnP JS library in SPFx to make cross-site collection calls.
The setup is very straight forward and will help you with other complex REST API calls as well.
https://pnp.github.io/pnpjs/documentation/getting-started/
https://github.com/SharePoint/PnP-JS-Core/wiki/Configuration