I am getting following error in console on load of a VF page that embeds lightning component.
Error:
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://MYRDomain-dev-dev-ed--c.na30.visual.force.com') does not match the recipient window's origin 'https://MYRDomain-dev-dev-ed.my.salesforce.com').
VF Page:
<apex:page >
<script src="https://MYRDomain-dev-dev-ed.my.salesforce.com/lightning/lightning.out.js" />
<apex:includeLightning />
<div id="lightning" />
<script>
$Lightning.use("c:UserPageApplication", function() {
$Lightning.createComponent("c:UserPageComponent",
{},
"lightning",
function(cmp) {
//do something
});
});
</script>