ssl - Dailymotion "broke" HTTPS with video thumbnail (Chrome warning) -
i have embed dailymotion video inside web page. use code below display it. code call preview picture of video through http instead of https whereas web page domain on https.
api call sent https protocol :
document.location.protocol
due this, ressources web page not sent through https , chrome display warning on ssl certificate.
<script> // dailymotion sdk (function() { var e = document.createelement('script'); e.async = true; e.src = document.location.protocol + '//api.dmcdn.net/all.js'; var s = document.getelementsbytagname('script')[0]; s.parentnode.insertbefore(e, s); }()); window.dmasyncinit = function() { var player = dm.player("player", {video: "x254e00", width: "480", height: "270"}); player.addeventlistener("play", function(e) { $('.video_layer').hide(); }); };
do have idea, how force https call picture preview ?
there bug when requesting thumbnails caused them not being passed on https. has been fixed. talking embed: resources inside dailymotion embed loaded in http, remains local dailymotion iframe, other resources in page not affected , continue sent through https.
Comments
Post a Comment