Cross-browser link to file on local system

前端 未结 2 1411
醉话见心
醉话见心 2020-12-01 23:22

I would like to make a link from a web page to a file on a local filesystem and make it work in all browsers (or at least in Internet Explorer, Firefox and Chrome).

2条回答
  •  一个人的身影
    2020-12-02 00:05

    Links to local files on pages that were retrieved via HTTP(S) are deliberately disabled in Mozilla/Firefox, because they can be a security risk, and have been used in attacks in the past.

    You can override this behaviour, however. For details, see this article in MozillaZine.

提交回复
热议问题