Answer the question
In order to leave comments, you need to log in
Why did Youtube player autoplay stop working (autoplay=1)?
Hello!
Who faced the problem of autostarting the Youtube player on the site? Now the browser blocks autorun and in the console displays: Error parsing header X-XSS-Protection: 1; mode=block; report= https://www.google.com/appserve/security-bugs/log/... : insecure reporting URL for secure page at character position 22. The default protections will be applied.
In htacces I wrote this:
<IfModule mod_headers.c>
Header set X-XSS-Protection: 0;
</IfModule>
$(function(){
var $video = $('#video'),
src = $video.attr('src');
$video.attr('src', src + '&autoplay=1');
});
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question