+ 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 ???
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.