由于Google Youtube Data API有一个示例示例,我无法运行给定的代码,因为它会在控制台中抛出错误
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('file://') does not match the recipient window's origin ('null').
我将我的脚本链接为
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js">
</script>
<script src="https://apis.google.com/js/client:plusone.js"></script>
<script src="cors_upload.js"></script>
<script src="auth.js"></script>
<script src="upload.js"></script>
我可能在哪里做错了?