alist icon indicating copy to clipboard operation
alist copied to clipboard

https://alist-org.github.io域名被墙,可否绑定个别名

Open vbskycn opened this issue 9 months ago • 0 comments

Please make sure of the following things

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

Description of the feature / 需求描述

https://alist-org.github.io域名被墙

用https://alist-org.github.io/pdf.js/web/viewer.html这个打开pdf预览失败,需要梯子才能正常预览

部署在github上面可否绑定个域名, 这样国内就可以直接打开了

我也试过自己部署官方pdf.js,

https://pdf.zhoujie218.top/web/viewer.html

web页查看正常,放到alist里面就是不行。

也fork个你的老pdf.js项目:https://github.com/alist-org/pdf.js

https://pdfg.zhoujie218.top/web/viewer.html

版本是一样的,但是报这个错误 image 查了下好像是跨域的问题,要改标头什么的,但是不知道在哪里改 而且我是fork部署,应该是一样的,只是绑了个域名。用https://alist-org.github.io就可以正常

可否指定一下怎么样避免

PDF.js v3.0.44 (build: 6852001b0) 信息:file origin does not match viewer's

这个问题

Suggested solution / 实现思路

可否在https://alist-org.github.io/pdf.js 绑定个别名???

Additional context / 附件

No response

vbskycn avatar May 23 '24 14:05 vbskycn