I am trying to load lightning pages in react-native app webview throught lightningout.js and getting the below error
Access to XMLHttpRequest at 'https://company.lightning.force.com/c/PP_Mobile.app?aura.format=JSON&aura.formatAdapter=LIGHTNING_OUT' from origin 'null' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
We have a native iOS and android app, where the lightning pages are loaded in to a cordova browser and it is working fine. I am using the same index.html file (used in native app cordova browser) in react-native webview. Is there any differences when calling lightningout.js from SF cordova webview and react native webview?