从Firefox或Chrome启动档案:// [英] Launch file:// from Firefox or Chrome
问题描述
我正在寻找一种方法来启动位于本地文件网络上的文件,以便通过使用Firefox或Chrome的本地Intranet使用。
I am looking for a way to launch a file located on our local file network for use via our local intranet using Firefox or Chrome.
链接在IE:
<a href="\\Start\Of\My\Network\file.xlsx">View Report</a>
但在Firefox中它显示:
but in Firefox it shows:
<a href="http://mydomain.com/\\Start\Of\My\Network\file.xlsx">View Report</a>
有没有办法让链接正确渲染? href标签。
is there a way to get the link to render properly?...Just a simple click from a href tag.
推荐答案
出于安全原因,这在firefox中未启用(记住大多数计算机都有敏感的文件和应用程序位于类似位置,如C:\System\Windows)
This is not enabled in firefox for security reasons (remember that most computers have files and applications of a sensitive nature located in similar locations, like C:\System\Windows)
您可以尝试将此添加到user.js文件中,以便任何需要能够访问以下链接:
you can try adding this to the user.js file for any user that needs to be able to access these links:
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");
请记住,这是一种安全风险。
Just remember that this is a security risk.
这篇关于从Firefox或Chrome启动档案://的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!