Launch file:// from Firefox or Chrome

前端 未结 5 1808
时光取名叫无心
时光取名叫无心 2021-02-08 10:24

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.

The link works well in IE:



        
5条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-08 11:06

    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)

    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.

提交回复
热议问题