Firefox 指向本地或网络页面的链接不起作用 [英] Firefox Links to local or network pages do not work

查看:43
本文介绍了Firefox 指向本地或网络页面的链接不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 .asp 应用程序,其中图像文件 (.PDF) 存储在一个目录中(由复印机/扫描仪提供).创建的文件名存储在数据库表中.从网页启动查询时,会创建指向该文件的链接.单击时应显示图像.此功能在 Internet Explorer 中 100% 有效.在 Firefox 中没有这样的运气(我有一些 Firefox 用户).创建的超链接如下所示 file://Server/Scanner/XYZ.pdf

I have a .asp application where image files (.PDF) are stored in a directory (fed by a copier/scanner). The created file names are stored in a database table. When a query is launched from the web page a link to the file is created. When clicked the image should be displayed. This functionality works 100% in Internet Explorer. No such luck in Firefox (and I have some Firefox users). The created hyperlink looks like this file://Server/Scanner/XYZ.pdf

Firefox 帮助说明原因如下:

The Firefox helps suggest the reason is this:

指向本地或网络页面的链接不起作用.作为安全预防措施,Firefox 禁止 Internet 上的站点链接到存储在本地计算环境中的文件.这些文件可能包括您计算机上的文件、映射的网络驱动器和 UNC 网络路径

Links to local or network pages do not work. As a security precaution, Firefox forbids sites on the Internet to link to files that are stored in your local computing environment. These files may include files on your computer, mapped network drives, and UNC network paths

所有解决方法的建议似乎都不起作用(或者我不了解创建图像显示的步骤)有什么建议吗?

None of the suggestions for a workaround seem to work (or I am not understanding the steps to create the image display) Any Suggestions?

推荐答案

这是为安全而设计的默认 Firefox 行为.假设可能是大多数网站不知道您的本地文件是什么以及在哪里(包括 UNC 路径)).

This is the default Firefox behavior designed for security .The assumption is probably that most web sites don't know what and where are you local files (including UNC paths).

这可以在 Firefox 中关闭:

This could be turned off in firefox:

  • 在地址栏中输入about:config"并接受我会小心"
  • 在旧版本中查找security.checkloaduri"或在较新版本的 Firefox 中查找security.fileuri.strict_origin_policy"并将值更改为false"
  • 重启火狐

那应该对你有用.您在此处了解更多信息:

That should do it for you. You have more information here:

这篇关于Firefox 指向本地或网络页面的链接不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆