CORS Rest Call from Sharepoint 2016 On Premises to Sharepoint Online

%3CLINGO-SUB%20id%3D%22lingo-sub-1377518%22%20slang%3D%22en-US%22%3ECORS%20Rest%20Call%20from%20Sharepoint%202016%20On%20Premises%20to%20Sharepoint%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1377518%22%20slang%3D%22en-US%22%3E%3CP%3ERequesting%20for%20the%20suggestion%20for%20the%20below%20problem%20from%20the%20community%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20have%20following%20environments%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1.SP%202016%20Environment-%26gt%3BTo%20store%20the%20Documents%2FPublishing%20Pages%3C%2FP%3E%3CP%3E2.SP%20Online%20Environment-%26gt%3BHybrid%20Search%20configured%20with%20SP%202016%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20SP%202016%20Environment%2Cfew%20publishing%20pages%20are%20created%20and%20and%20would%20like%20to%20create%20search%20web%20part%20using%20search%20REST%20API%20but%20Search%20is%20configured%20in%20SharePoint%20online%2C%20it%20is%20throwing%20CORS%20error.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEarlier%20when%20CORS%20was%20required%20for%20on%20premises%20scenarios%2Cconfigured%20entries%20in%20IIS%20but%20in%20case%20of%20SP%20Online%20what%20is%20the%20best%20way%20to%20get%20the%20results%20from%20SP%20online%20Search%20REST%20API%20in%20to%20SP%202016.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1377518%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ECors%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Regular Visitor

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.