Failed to execute ‘postMessage’ on ‘DOMWindow’: https://www.accounts.google.com !== http://yourdoamin.com

- Advertisement -

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?

- Advertisement -

How to fix this issue?

- Advertisement -

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.

For instance:

var id = getId(url);
return '//www.accounts.google.com/embed/' + id + '?showinfo=0&enablejsapi=1&origin=http://localhost:9000';
}

to be:

var id = getId(url);
return 'https://www.accounts.google.com/embed/' + id + '?showinfo=0&enablejsapi=1&origin=http://localhost:9000';
}
- Advertisement -

Share it with friends:

Related Articles

Get in Touch

175FansLike
112FollowersFollow

Latest Posts

Popular Posts