Failed to execute ‘postMessage’ on ‘DOMWindow’: The target origin provided (‘https://accounts.google.com’) does not match the recipient window’s origin (‘https://www.yourdomain.com’)
What is the problem actually?
How to fix this issue?
Well, This happens for https using website. because they automatically block the content from HTTP to iframe tag.
Try to change the URL of the file you are trying to embed to be https.
return '//www.accounts.google.com/embed/' + id + '?showinfo=0&enablejsapi=1&origin=http://localhost:9000';
return 'https://www.accounts.google.com/embed/' + id + '?showinfo=0&enablejsapi=1&origin=http://localhost:9000';