admin管理员组文章数量:1355697
I'm using the IFrame API as the title suggests. I have been following the guide in the API Reference. It works for me however I have found a few warnings that occur and would like to solve them. They are:
Untrusted origin:
and
Untrusted origin: chrome-extension://boadgeojelhgndaghljhdicfkmllpafd
both of which originate from www-embed-player.js:331
Through my research I have found that the second one happens because it constantly polls for the chromecast extension (kinda weird but its google). If I disable the chromecast extension that warning bees errors such as:
GET chrome-extension://boadgeojelhgndaghljhdicfkmllpafd/cast_sender.js net::ERR_FAILED
from www-embed-player.js:163
I have tried adding the enablejsapi and origin parameters mentioned with no change in luck.
I have also tried adding the IFrame directly as mentioned in Loading a Video Player which didn't remove the untrusted origin errors, and also broke my javascript functionality.
Thank you
I'm using the IFrame API as the title suggests. I have been following the guide in the API Reference. It works for me however I have found a few warnings that occur and would like to solve them. They are:
Untrusted origin: https://www.youtube.
and
Untrusted origin: chrome-extension://boadgeojelhgndaghljhdicfkmllpafd
both of which originate from www-embed-player.js:331
Through my research I have found that the second one happens because it constantly polls for the chromecast extension (kinda weird but its google). If I disable the chromecast extension that warning bees errors such as:
GET chrome-extension://boadgeojelhgndaghljhdicfkmllpafd/cast_sender.js net::ERR_FAILED
from www-embed-player.js:163
I have tried adding the enablejsapi and origin parameters mentioned with no change in luck.
I have also tried adding the IFrame directly as mentioned in Loading a Video Player which didn't remove the untrusted origin errors, and also broke my javascript functionality.
Thank you
Share Improve this question edited May 23, 2017 at 10:29 CommunityBot 11 silver badge asked Feb 27, 2015 at 21:02 FrozenfireFrozenfire 6777 silver badges15 bronze badges1 Answer
Reset to default 5The error has been acknowledged by Google:
https://code.google./p/google-cast-sdk/issues/detail?id=309
This is per design; in order to know if a user has the Chromecast extension installed (and which one), cast_sender.js requests the script from all potentially installed extensions.
This question has also been answered here: https://stackoverflow./a/26095117/1007392
Best, Sam
本文标签: javascriptYoutube IFrame API Untrusted OriginStack Overflow
版权声明:本文标题:javascript - Youtube IFrame API Untrusted Origin - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743986587a2571379.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论