Lightning Out Requirements

Deploying a Lightning components app using Lightning Out has a few modest requirements to ensure connectivity and security.
The remote web container, or origin server, must support the following.
  • Ability to modify the markup served to the client browser, including both HTML and JavaScript. You need to be able to add the Lightning Out markup.
  • Ability to acquire a valid Salesforce session ID. This will most likely require you to configure a Connected App for the origin server.
  • Ability to access your Salesforce instance. For example, if the origin server is behind a firewall, it needs permission to access the Internet, at least to reach Salesforce.
Your Salesforce org must be configured to allow the following.
  • The ability for the origin server to authenticate and connect. This will most likely require you to configure a Connected App for the origin server.
  • The origin server must be added to the Cross-Origin Resource Sharing (CORS) whitelist.

Finally, you create a special Lightning components app that contains dependency information for the Lightning components to be hosted on the origin server. This app is only used by Lightning Out or Lightning Components for Visualforce.