-
Notifications
You must be signed in to change notification settings - Fork 56
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
www-widgetapi.js:115 Failed to execute 'postMessage' on 'DOMWindow #38
Comments
Also
|
@freddycrugger I am having the same problem. I have looked at your link on SO, but neither the |
I have the same issue, both locally (in http://localhost:3000) and remotely (https site.) I am using the origin parameter, but it doesn't make any change. Has anyone fixed this issue? |
i have the same issue locally and on the server using https |
sameeee dang |
same +1 |
Try this if it works for you: |
Same issue, locally and in production with HTTPS. |
This fixed my issue: https://stackoverflow.com/a/27574013 . You could also try this: |
I tried both of these and it didn't work for me. Issue still happens both locally and in production.
Which will always throw an error unless you paste this on a youtube window. |
Can you try to post your origin url with the POST?
So your minified code end up with something like this:
Obviously, you will need to adapt your code with the above idea. But I am wondering if passing the origin website URL will help you. If you check their bottom example, the origin is passed in the URL: |
Thank you for your reply Yes, I'm sending the origin with the playerVars, like this
My iFrame src attribute looks like this
Unfortunately the error persists:
|
Could you try this instead? |
Make sure your VIDEOID is correct.
As
Can you also try to remove "&widgetid=1" aswell please as I think this is extra which is not part of the Youtube API. Thanks |
The VIDEOID is correct, as it is working on the page.
But the console error persists. It is an annoyance tbh, as everything works fine, but I'm trying to get rid of this console error. I'm not being able to pinpoint who's adding this widgetid=1 attribute, I'm using [email protected] and [email protected] |
I'm sorry for my ignorance but how can I do that? If you are kind to provide a link with a tutorial or some sort, I could sort it out. |
When you use vue, you have hooks as shown here: Imagine from top to bottom a series of functions running before or after the html is rendered. Make sure that the play() function is not automatically started. Make sure it is setup like this: In the example they give, you have manual start of the video when the <button @click="playVideo">play is clicked.
|
My code looks very similar to that. I'm not playing the video on page load. I'm showing the video down the page after some text and I noticed that the iframe loads as the user scrolls down. |
Can you try in another browser to see if this happens aswell? |
On Safari the error looks a bit different:
And on Firefox it looks like this:
I don't know what else to check either, already tried everything I found on google, stack overflow, etc. |
Perhaps the plugin is too old and needs an update, I think its been 3 years without an update. This could be the issue. Maybe something changed on the Youtube API side since. |
Hello,
I have been using your plugin and keep getting this error in the chrome console.
www-widgetapi.js:115 Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://www.youtube.com') does not match the recipient window's origin ('https://mysite.com').
Maybe this link can help you fix the issue in your code:
https://stackoverflow.com/questions/27573017/failed-to-execute-postmessage-on-domwindow-https-www-youtube-com-http
I am using the version 1.3.5
Thank you.
The text was updated successfully, but these errors were encountered: