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...
paulpascha
Jul 18, 2019Bronze Contributor
Christophe Humbert SharePoint 2016 doesn't provide an easy way to configure CORS to allow for cross-domain calls. Easiest way in my experience is to create a custom Web API to perform and expose the SharePoint operations required and host it in the domain where your SPFx components reside.