0

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?

  • In our native app, the index.html and app.js loaded into SFhybridviewcontroller. – Senthilkumar.S May 29 '19 at 14:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.