CORS Rest Call from Sharepoint 2016 On Premises to Sharepoint Online

Copper Contributor

Requesting for the suggestion for the below problem from the community

 

We have following environments

 

1.SP 2016 Environment->To store the Documents/Publishing Pages

2.SP Online Environment->Hybrid Search configured with SP 2016

 

In SP 2016 Environment,few publishing pages are created and and would like to create search web part using search REST API but Search is configured in SharePoint online, it is throwing CORS error.

 

Earlier when CORS was required for on premises scenarios,configured entries in IIS but in case of SP Online what is the best way to get the results from SP online Search REST API in to SP 2016.

 

 

 

 

 

0 Replies