Replies: 2 comments 1 reply
-
同问 |
Beta Was this translation helpful? Give feedback.
1 reply
-
浏览器跨域访问就会出这个问题,我用手机termux启动alist, 本机浏览器访问没问题,局域网内其他手机访问该手机的alist就会出现你一样的问题,我查了下csdn,里面说这个是PDF.JS的问题,需要编译这个JS文件允许跨域访问或者你使用反向代理 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
我用的是本地存储,想实现pdf 预览。看了下文档说要求 https + cors 解决才可以。我申请了 ssl 证书,https 访问没问题了。不过 CORS 的问题该如何解决呢?文旦里说的是需要网盘支持 CORS,可没说本地存储该怎么解决。
我尝试了设定了 site_url 为自己的网站域名(带https),也试了在 nginx 反向代理中添加 X-Forwarded-Proto 头,都还是没用。
错误如下:
Beta Was this translation helpful? Give feedback.
All reactions