Answers for "The target origin provided ('https://www.youtube.com') does not match the recipient window's origin ('http://localhost')"

0

The target origin provided ('https://www.youtube.com') does not match the recipient window's origin ('http://localhost')

//Add the parameter "origin" with the URL of your site in the paramVars attribute of the player
this.player = new window['YT'].Player('player', {
    videoId: this.mediaid,
    width: '100%',
    playerVars: { 
        'autoplay': 1,
        'controls': 0,
        'autohide': 1,
        'wmode': 'opaque',
        'origin': 'http://localhost:8100' 
    },
}
Posted by: Guest on January-10-2021

Code answers related to "The target origin provided ('https://www.youtube.com') does not match the recipient window's origin ('http://localhost')"

Code answers related to "Javascript"

Browse Popular Code Answers by Language