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
SFDC Learning 6SFDC Learning 6 

Problem with ltng:allowGuestAccess on public site

I am trying to dispay multiple lightning components using sites vfpage.
 
<apex:page sidebar="false" showHeader="false" standardStylesheets="false">

    <apex:includeLightning />
    <div id="lightning" />
    <div class="slds">
        <div class="slds-grid">
            <div class="slds-col"><div id="formSelection" /></div>
            <div class="slds-col"><div id="objectSelection" /></div>
        </div>
    </div>
    
    <div id="sldsSpinner" />
    
    
      <script>
        $Lightning.use("c:LtPOfCom", function() {
                $Lightning.createComponent(
                    "c:GC",
                    {},
                    "formSelection"
                );
                $Lightning.createComponent(
                    "c:GeneralPC",
                    {},
                    "objectSelection"
                );
               
            }
        );
    </script>

</apex:page>

It is not working on public site. 

error: http://test-123-developer-edition.ap2.force.com/test/c/LatestPackageOfComponents.app?aura.format=JSON&aura.formatAdapter=LIGHTNING_OUT


Could anyone please solve this issue.

Thanks in advance
SFDC Learning 6SFDC Learning 6
Please find the Lightning app code snippet:
 
<aura:application extends="ltng:outApp" access="Global" implements="ltng:allowGuestAccess">

<!-- <c:GeneralCards /> 
    <c:GeneralPicklistComponent/>  -->
     <aura:dependency resource="c:GC"/>
    <aura:dependency resource="c:GeneralPC"/>

</aura:application>

Thanks