-
Notifications
You must be signed in to change notification settings - Fork 549
-
Notifications
You must be signed in to change notification settings - Fork 549
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to execute 'postMessage' on 'DOMWindow' #67
Comments
I forgot to add 'when using Chrome' to the above. |
Some here. More informations here : https://code.google.com/p/gdata-issues/issues/detail?id=5788 |
Fixed with forceSSL, see #68 |
I am still having this issue with the latest build, are you sure it's fixed? |
@deweydb can you please give more details on how to reproduce |
I can confirm this issue. It happens when you are logged in into your google account (gmail). |
The issue is still there... It happened magically have two project, same code base, one with this issue. Other not :( www-widgetapi.js:98 Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('http://www.youtube.com') does not match the recipient window's origin ('https://www.youtube.com'). Is there an approach to avoid it? |
+1 |
1 similar comment
+1 |
This is still occurring. The YouTube JS seems to be trying to communicate back to the host window inside a |
Anyone know of when this will be fixed? |
it's replicable on chrome as well at my end. I think this is because you're forcing the iframe_api to load over https. In @wegorich case, you can clearly see that he's requesting api over http. I just removed the https |
I'm facing the very same issue. It seems that this bug just came back after an update oj videojs-youtube. |
Same here, I get repeat console error of this
|
My problem with youtube video is, when I play one video close it before I open another video, |
+1 |
2 similar comments
+1 |
+1 |
Please, just posting Thanks. |
Hi all! I've got the same issue in both chromium-browser and firefox under ubuntu 16.04 on https://developers.facebook.com/graph-academy/marketing-api/1/. "Login with Facebook" button is not working, getting several messages like "login-ads.php:50 Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://developers.intern.facebook.com') does not match the recipient window's origin ('https://developers.facebook.com')" in console... |
@manjudr were you able to solve it ? I am also facing the same problem |
@codechikbhoka Still that is not fixed yet somehow video is working but we were getting those errors in the console still. |
Does anyone can provide a way to catch this error ? |
+1 |
I met same error. Issue is like this "www-widgetapi.js:116 Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://www.youtube.com') does not match the recipient window's origin ('https://js.driftt.com')" And javascript code is <script> !function() { var t; if (t = window.driftt = window.drift = window.driftt || [], !t.init) return t.invoked ? void (window.console && console.error && console.error("Drift snippet included twice.")) : (t.invoked = !0, t.methods = [ "identify", "config", "track", "reset", "debug", "show", "ping", "page", "hide", "off", "on" ], t.factory = function(e) { return function() { var n; return n = Array.prototype.slice.call(arguments), n.unshift(e), t.push(n), t; }; }, t.methods.forEach(function(e) { t[e] = t.factory(e); }), t.load = function(t) { var e, n, o, i; e = 3e5, i = Math.ceil(new Date() / e) * e, o = document.createElement("script"), o.type = "text/javascript", o.async = !0, o.crossorigin = "anonymous", o.src = "https://js.driftt.com/include/" + i + "/" + t + ".js", n = document.getElementsByTagName("script")[0], n.parentNode.insertBefore(o, n); }); }(); drift.SNIPPET_VERSION = '0.3.1'; drift.load('pn4kvs3b3x4i'); </script>How can I solve this issue? |
same here 🤔 |
Still having this issue in 2018 ;/ |
Confirmed. I have the same issue. So the issue is still there after years. Noone is able to fix this? :/ |
Having this issue as well. |
Why this issue is closed ? Many of user are facing this issue still |
So, I finally took some time to investigate this and was able to reproduce after super carefully re-reading the original post, in my previous reading I didn't catch the nuance in the issue. However, a live test case would've helped this get reproduced a lot earlier, which is why it was still closed until now. This was actually fixed in a really old version via the |
@gkatsev I took a deeper look into this, it seems like it might be a timing issue with the YouTube IFrame API. The IFrame API already loads everything over https, so implementing #68 again would offer no benefits, and actually loses us the benefit of having the IFrame API do all of the lifting for creating the iframe. It looks like initially two messages are sent, the first one gets rejected due to the iframe not being initialized completely (it looks like): |
On the plus side it looks like this error only happens on the first event, and doesn't impact video playback at all, so it's unfortunately just a benign error message that pops up. |
Thanks for looking @tjaneczko. Seems like the issue currently isn't related to the original issue here. I think I got confused because I wasn't getting the error when the source was |
Wanted to share my experience here as it was resolved after few steps
Hope it help for you as well. |
I have similar problem with video.js@7.7.5 and youtube plugin v2.6.1 |
For my case I think I resolved the problem with these options (i think i need just 'origin'): { ... , "youtube": { "iv_load_policy": 1, "origin": "{$SETTINGS.url}" } } Sorry seems doesn't work... |
@yourchoice have you managed to solve this with video.js and youtube plugin? |
Hello, Did anyone fix this issue please? Thank you |
This error occur due to different reasons means there are different solutions but here are two things you can try and hope it will fix the issue:
|
This comment from YouTube API Issue Tracker solved it for me. TL;DR: Remove |
Having this issue as well. |
I had that issue too. Fixed it simply adding
To this:
Seems like order is important, because it build query link by the order in |
When logged into youtube the protocol is usually automatically redirected to HTTPS. This causes the above error when embedding a videojs-youtube video on an HTTP site.
The text was updated successfully, but these errors were encountered: