Open local folder from different browsers

2019-09-17 19:33发布

问题:

I'm developing an intranet (written in c#) and I need to access some local folders (stored in an internal server) using local links.

I actually tried to use "\server-name\folder-name$" as link and it works fine on Internet Explorer. If used on Chrome though, nothing happens; worse on Firefox, where I get the 404 error message.

I also tried to change the link (as seen in many posts here) in "file://server-name/folder-name$" or "file://///server-name/folder-name$", always working on IE, but nothing's happening on Firefox and Chrome.

I'm looking for a simple solution that would work for at least these 3 browsers, if possible..

I tried to follow some workarounds, especially HERE but it's not what I'm looking for. I'd rather not installing extensions nor edit some particular settings (don't know why the process for Firefox didn't work), if possible!

any suggestions would be greatly appreciated!

回答1:

I'm pretty sure that the only browser that allows local links is Internet Explorer.

It's been removed from other browsers because of the security holes it provides. Here's a relevant SO post about this.

With that being said, I think some extensions change Google Chrome to allow this. I don't know of any that do this for Firefox.

EDIT: It's possible on Firefox.

This may not be that helpful though, since you're developing the intranet and presumably won't be the only one using it.