I'm tring to outsource my aura component with lightning out using a connected app but I have a 500 error. (I have no problem connecting with the user/password/token mode). CORS are well set (localhost:5000 here)

enter image description here

I tried to setup logs in salesforce but I have nothing but I can see connection success

enter image description here

Lightning out script :

    <script type="text/javascript"  src="https://******.lightning.force.com/lightning/lightning.out.js"></script>
    <div id="auraLightning"></div>

                { msg: "It works (Aura)2!",
                callback : lightningCallback 
                (cmp) => {
                    console.log("Aura component was created");
    //Function to call from Lightning Component
    function lightningCallback(theMsg){
        console.log('On WebSite: ' + theMsg);


My aura app ParentDDCApp :

<aura:application access="GLOBAL" extends="ltng:outApp">
  <aura:dependency resource="c:parentDDCAura"/>

My Aura component parentDDCAura:

<aura:component >
   <aura:attribute name="msg" type="String" default="No Message passed!" />


I think the problem is with the connected app parameters but can't find how to fix it

1 Answer 1


Finally found the problem : the profile we used to display the componnent was "API Only", what doesn't work to display Lightning out component. When we display it with a standard "read only" profile and the Permission set for the objects use by the compenent, we dont have the problem anymore.

Reminder : verify to use https://*********.lightning.force.com format in the script for connexion

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .