
I've created a Visualforce page that switches to a lighting component with an i frame.
When I click on the button, the following message appears:
Lightning components require My Domain. For more information, contact your system administrator
I have already created a domain.
Can someone help me?
the simple component code is as follows:
<aura:component implements="lightning:actionOverride,flexipage:availableForRecordHome,force:hasRecordId,force:lightningQuickAction,forceCommunity:availableforAllPageTypes,force:appHostable" access="global" >
<div>
<iframe src="https://customdomain.lightning.force.com/apex/AccountEditButton" width="100%" height="100%" />
</div>
</aura:component>
1 answer
Hi Sal,
Try this:
<iframe src="https://YOUR_DOMAIN.salesforce.com/apex/AccountEditButton" width="100%" height="100%" />