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
Raghu Natha 2Raghu Natha 2 

lightning out component guess access on external application


I am trying to use Lightning out component out side salesforce, and I see the below error in the browser console.
" GET 404 (Not Found)"

Below is the code

<H1> Hello World </h1>
<div id="lightning"></div>
<script src=""></script>
$Lightning.use("c:lwcVfDemoApp", function() {
$Lightning.createComponent("c:lwcVFDemo", {
objectName: "Contact"
function(cmp) {
console.log("LWC component was created");
// do some stuff

NOTE: this is for allowing gues access.
Hi Raghu,

Can you share your lwcVfDemoApp 


Make sure you are using ltng:allowGuestAccess interface in your app.
Similar to 
<aura:application access="GLOBAL" extends="ltng:outApp" 
    <aura:dependency resource="c:storeLocatorMain"/>
Raghu Natha 2Raghu Natha 2
Hi Nalluri, 

Below is my code.

<aura:application access="GLOBAL" extends="ltng:outApp" implements="ltng:allowGuestAccess">
    <aura:dependency resource="lwcVFDemo"/>


Checkout this thread.

Raghu Natha 2Raghu Natha 2
Hi Nalluri,

Thank you for the replies, I am able to get the component working on a VF page in SF Org.
But unsuccessfull in running the same component outside SF.

The link that was shared above is more of for an VF Page.