Allow chrome load local file while the website is loaded over https

Viewed 15

Is there any way how to load local file (using file://) while the main website is loaded over http?

I have found many articles and post about using --allow-file-access-from-files, but it doesn't seem to work. Without this flag I got Unable to load local resource and with this flag I actually got UNKNOWN_URL_SCHEME error. (I also disabled security).

The thing is after digging deeper I have found that this functionality should probably only work for file:// to file:// resources but not http to file but whereever I search this problem (articles and other stackoverflow QA), it's not mentioned anywhere - that's why I am little bit confused if this is really true.

From chromium source:

enter image description here

So my question is - is it really true, that allow-file-access-from-files only works for file resource and if so is there any way how to allow chrome load local file if the website is loaded over http(s)?

(and yes I know about the solution with local server. Looking for solution with pure chrome)

0 Answers
Related