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 credentials).
I found a crossDomainWeb method in the documentation for the add-in model, but nothing for SPFx.
@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.