Upload widget triggers "Failed to execute postMessage on DOMWindow" error
Hi,
We included the Cloudinary upload widget on our website. It works (which is good :-), but we get the following error in the Javascript console when the web page loads:
> Failed to execute 'postMessage' on 'DOMWindow': The target origin provided
('https://app.kissmetrics.com') does not match the recipient window's origin
('https://stage.acme.com').
(Note: stage.acme.com is not the real host name, obviously. Everything else is pasted as-is.)
This error comes from a file whose url is https://widget.cloudinary.com/n/ourcloudname/136/index.html?cloud_name=ourcloudname (Note: here too, ourcloudname is not real)
I saw https://support.cloudinary.com/hc/en-us/community/posts/201155591-cloudinary-openUploadWidget-javascript-error-no-longer-works-?input_string=Upload%20widget%20triggers%20Failed%20to%20execute%20%27postMessage%27%20on%20%27DOMWindow%27 but we do not seem to be in the same situation as we don't use a cached version (we simply request it from https://widget.cloudinary.com/global/all.js)
I also found a post on StackOverflow related to this kind of error: https://stackoverflow.com/questions/27573017/failed-to-execute-postmessage-on-domwindow-https-www-youtube-com-http However the problem appears to be with mixing http and https, and we don't, everything is https.
So I don't see how to solve this problem. Is there anything that we could check to try and get rid of this error?
Thanks
Post is closed for comments.
Comments
2 comments