Skip to content
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

在国内机器上面无法打开PDF文件 #6931

Open
4 tasks done
SDCOM-0415 opened this issue Aug 3, 2024 · 12 comments
Open
4 tasks done

在国内机器上面无法打开PDF文件 #6931

SDCOM-0415 opened this issue Aug 3, 2024 · 12 comments
Labels
enhancement New feature or request

Comments

@SDCOM-0415
Copy link

Please make sure of the following things

  • I have read the documentation.
  • I'm sure there are no duplicate issues or discussions.
  • I'm sure this feature is not implemented.
  • I'm sure it's a reasonable and popular requirement.

Description of the feature / 需求描述

推荐建立国内镜像或者使用其他国内能够正常使用的镜像

Suggested solution / 实现思路

No response

Additional context / 附件

image
域名为alist-org.github.io,基本可以鉴定是GitHub的问题

@SDCOM-0415 SDCOM-0415 added the enhancement New feature or request label Aug 3, 2024
@Simonzhang8
Copy link

可以自行搭建部署pdf.js阅读器或其他pdf阅读器

@JsonSong89
Copy link

浏览器上装个梯子插件呗
你是怎么用浏览器来github发issue的 就怎么解决这个问题

@SDCOM-0415
Copy link
Author

浏览器上装个梯子插件呗 你是怎么用浏览器来github发issue的 就怎么解决这个问题

我一直全局挂梯

@31518854
Copy link

pdf文件是不是也不支持下载

@Simonzhang8
Copy link

pdf文件是不是也不支持下载

下载肯定能下载啊

@31518854
Copy link

pdf文件是不是也不支持下载

下载肯定能下载啊

挂载的百度网盘,pdf下载不了,视频可以下

@Simonzhang8
Copy link

Simonzhang8 commented Aug 23, 2024

pdf文件是不是也不支持下载

下载肯定能下载啊

挂载的百度网盘,pdf下载不了,视频可以下

可以下载,看看是不是配置有问题
还是不清楚的话另提一个Issue或Discussion

@JsonSong89
Copy link

原来是https的原因
我对前端不是很熟悉,感觉应该是pdf.js 是从https的cdn下载的,然后fetch你的pdf时候,你的地址是http的
https域不能请求http资源,所以报错,我用nginx在前面代理了一层https,然后config.json里面指定https的地址,打开pdf就正常了

@JsonSong89
Copy link

image
我上面猜测应该是对的,pdf预览是用了iframe,那iframe的安全策略就是它自己玩,和你的alist服务没关系了

@soualone
Copy link

原来是https的原因 我对前端不是很熟悉,感觉应该是pdf.js 是从https的cdn下载的,然后fetch你的pdf时候,你的地址是http的 https域不能请求http资源,所以报错,我用nginx在前面代理了一层https,然后config.json里面指定https的地址,打开pdf就正常了

具体如何操作的可给个示例吗?

@SDCOM-0415
Copy link
Author

可以给一个演示吗?

@izumiChan16
Copy link

原来是https的原因 我对前端不是很熟悉,感觉应该是pdf.js 是从https的cdn下载的,然后fetch你的pdf时候,你的地址是http的 https域不能请求http资源,所以报错,我用nginx在前面代理了一层https,然后config.json里面指定https的地址,打开pdf就正常了

我也有这个问题,请问具体是怎么实现的呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants