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
abhinav sarraf 17abhinav sarraf 17 

how to deploy vf page containing lightning components using lightning out in sites??

I am gettig an unauthorized error when i am using lightning components in vf page using lightning out and publishing it through sites. While investing i found that it is because lightning.out.js is send an ajax request and salesforce is rejecting it. 

Whats the solution ???
ChicloudChicloud
I don't believe you can use lightning componens embedded in VF pages in force.com sites..Lightning doesn't reallly now how to use the guest user accounts that sites / customer portal uses yet. Unfortuantely, the only solution is to not use lightning with sites but rather just plain old VF.