not allowed to load local resource

3,308 views
Skip to first unread message

roee cohen

unread,
Sep 7, 2017, 2:01:59 AM9/7/17
to Chromium-discuss

Chrome is not allowing load local resource, It understandable why.

But , some time it realy necessary.

I am trying to enable ficher on my intranet app that when a user will click a link the page will open a windows file explorer to folder specifide in the HREF attribute.


<a href="file://[the project folder]">Project Folder</a>


Of course, Chrome return an error "not allowed to load local resource".

This option (opening windows file explorer to a local root) is so basic, that there must be a solution that will allow user to open the folder and still keep him safe (whitelist of sites allow to do so or someting like that [Trusted sites??]).


Is there a solution i am missing out?

Thanks a lot

PhistucK

unread,
Sep 7, 2017, 2:05:52 AM9/7/17
to roe...@gmail.com, Chromium-discuss
This group discusses the Developer Tools feature of Google Chrome and not general web development issues. Please, do not continue this discussion here. chromium-discuss is a better group for this discussion.

file:/// URLs, if permitted, have a lot of power, which is why they are heavily restricted. For opening local HTMLs, you need a local web server. There are compact, standalone, open source and installation-free servers that can do that. I would not expect the file:// URL policy to change if I were you.


PhistucK

--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss

---
You received this message because you are subscribed to the Google Groups "Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discuss+unsubscribe@chromium.org.

Reply all
Reply to author
Forward
0 new messages