Failed to execute ‘postMessage’ on ‘DOMWindow’: The target origin provided (‘http://signuporgtest1612356181097.lightning.localhost.sfdcdev.force.com:6109’) does not match the recipient window’s origin (‘http://signuporgtest1612356181097.my.localhost.sfdcdev.salesforce.com:6109’).
Any idea why it is happening? Is it because some new blocking policy on cookies or do I require older version of browser.
This started happening this Tuesday...even in Firefox.
답변 1개
Hi Gaurav,
Note that the receiving subdomain is slightly different than the one that sends the postmessage. You need to specify the target domain as the second parameter of your postmessage call.