如何解决访问控制允许来源问题?
how to solve Access-Control-Allow-Origin issue?
flv 视频通常会上传到我们的 Google 驱动器并创建到 iframe
喜欢
<iframe height="272" style="margin-top:-270px; position:absolute" src="https://drive.google.com/file/d/0BwgCehvr2FnlU3cwTTVzUXN5SXM/preview" width="440"></iframe>
其中的一些浏览器显示为 "Whoops! There was a problem playing this video. Download" 但是如果我们单击右上角的 'pop out' 按钮,视频将在单独的选项卡上打开并播放。
XMLHttpRequest cannot load
https://docs.google.com/get_video_info?docid=0BwFh_4qf05UOYnkxLW9Mb3dJRFU&authuser=0.
Redirect from
'https://docs.google.com/get_video_info?docid=0BwFh_4qf05UOYnkxLW9Mb3dJRFU&authuser=0'
to
'https://accounts.google.com/ServiceLogin?service=writely&passive=1209600&co…tps://drive.google.com/file/d/0BwFh_4qf05UOYnkxL<mpl=homepage&authuser=0'
has been blocked by CORS policy: No 'Access-Control-Allow-Origin'
header is present on the requested resource. Origin
'https://drive.google.com' is therefore not allowed access.
如何解决这个问题?
目前 Google 驱动器似乎有问题:
https://productforums.google.com/forum/#!topic/drive/uACJyxwGbU0
flv 视频通常会上传到我们的 Google 驱动器并创建到 iframe
喜欢
<iframe height="272" style="margin-top:-270px; position:absolute" src="https://drive.google.com/file/d/0BwgCehvr2FnlU3cwTTVzUXN5SXM/preview" width="440"></iframe>
其中的一些浏览器显示为 "Whoops! There was a problem playing this video. Download" 但是如果我们单击右上角的 'pop out' 按钮,视频将在单独的选项卡上打开并播放。
XMLHttpRequest cannot load https://docs.google.com/get_video_info?docid=0BwFh_4qf05UOYnkxLW9Mb3dJRFU&authuser=0. Redirect from 'https://docs.google.com/get_video_info?docid=0BwFh_4qf05UOYnkxLW9Mb3dJRFU&authuser=0' to 'https://accounts.google.com/ServiceLogin?service=writely&passive=1209600&co…tps://drive.google.com/file/d/0BwFh_4qf05UOYnkxL<mpl=homepage&authuser=0' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://drive.google.com' is therefore not allowed access.
如何解决这个问题?
目前 Google 驱动器似乎有问题:
https://productforums.google.com/forum/#!topic/drive/uACJyxwGbU0