我正在寻找一种方法来启动位于我们本地文件网络上的文件,以便使用 Firefox 或 Chrome 通过我们的本地 Intranet 使用。
该链接在 IE 中运行良好:
<a href="\\Start\Of\My\Network\file.xlsx">View Report</a>
但在 Firefox 中它显示:
<a href="http://mydomain.com/\\Start\Of\My\Network\file.xlsx">View Report</a>
有没有办法让链接正确呈现?...只需从 href 标签上单击一下即可。
最佳答案
出于安全原因,Firefox 中未启用此功能(请记住,大多数计算机的敏感性质的文件和应用程序位于类似位置,例如 C:\System\Windows)
对于需要能够访问这些链接的任何用户,您可以尝试将其添加到 user.js 文件中:
user_pref("capability.policy.policynames", "localfilelinks");
user_pref("capability.policy.localfilelinks.sites", "file:///[[PUT SERVER NAME HERE]]";);
user_pref("capability.policy.localfilelinks.checkloaduri.enabled", "allAccess");
请记住,这是一个安全风险。
关于google-chrome - 启动文件 ://from Firefox or Chrome,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1374927/