function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Richard Cave09035942158259942Richard Cave09035942158259942 

connect to 3rd party https website inside salesforce hybrid ios app

I am trying to write an ios app for our customer community.  Within our community i can connect to an https website in an iframe, when I point to this website via the hybrid app it doesn't work that page is just blank.

Is this possible.
Best Answer chosen by Richard Cave09035942158259942
Tom Maple2Tom Maple2
We faced a similar problem when linking to an external website in an iFrame.  We needed to modify the config.xml file in the Supporting Files folder to "whitelist" the website we were connecting to. At the bottom of the config.xml file are access tags for Force.com and Salesforce.com.  Just add another line with an access tag. For example, if the site lives on an Amazon server you would add this:

<access origin="*.amazonaws.com" />

Note that the website could have LOTS of references to other website which must to whitelisted too, like google-analytics.com and googletagmanager.com. So you have analyze the external website for all the external references.