-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
抖音似乎不能用了 #39
Comments
我仔细对比了一下接口返回数据,初步判断,应该是被转义以后导致连接访问问题,以下是我提供的排查过程
接口返回
过程
|
我没用网页端 刚才发现403其实作者在温馨提示中标注了... |
这个是服务器对请求来源进行了限制 在另一个issues里有解答 #38 |
好像添加一个属性 referrerpolicy 就可以了 parse-video/templates/index.tmpl Lines 115 to 120 in 5590cb2
改: successHtml += '<a class="mdui-btn mdui-btn-raised" href="'+jsonObj.data.cover_url+'" target="_blank" download="video" referrerpolicy="no-referrer" >下载封面</a>';
// 如果video_url不为空, 则显示下载视频按钮
if(jsonObj.data.video_url != ""){
successHtml += '<a class="mdui-btn mdui-btn-raised" href="'+jsonObj.data.video_url+'" target="_blank" download="video" referrerpolicy="no-referrer" >下载视频</a>';
} |
@rucswax 添加 属性 referrerpolicy 方法不错 👍, 已添加进代码 |
抖音似乎不能用了,刚把代码拉下来运行,试了几个链接都不行

抖音链接
The text was updated successfully, but these errors were encountered: