
<aura:application access="GLOBAL" extends="ltng:outApp" implements="ltng:allowGuestAccess">
<aura:dependency resource="c:sameplecomponent"/>
</aura:application>
<script src="https://yourCommunityDomain/communityURL/lightning/lightning.out.js"></script>
<script>
$Lightning.use("c:CF_CustomerContactFormApp", function() {
$Lightning.createComponent("c:sameplecomponent",
"",
"lightning",
function(cmp) {
// do some stuff
});
},
"https://yourCommunityDomain/communityURL"
);
Is it also possible to do this without community?
3 respostas

I think my code looks the same as some of the answers in the thread. But I get a 500 error when I don't include the community url link, and a 404 error when I do.