allow-universal-access-from-files

1,264 views
Skip to first unread message

lacsaP Patatetom

unread,
Oct 25, 2017, 4:41:00 PM10/25/17
to Chromium-discuss
hi,

I use remark with external markdown (eg. sourceUrl) and, when I get my html file, I encounter a cross origin request error :
Failed to load file:///tmp/test.md: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.

is allow-universal-access-from-files option intended to bypass this security restriction ?
if not, what is it intended for ?

regards.

Torne (Richard Coles)

unread,
Oct 25, 2017, 4:51:31 PM10/25/17
to pata...@gmail.com, Chromium-discuss
allow-universal-access-from-files has been deleted; it doesn't do anything at all.

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

lacsaP Patatetom

unread,
Oct 26, 2017, 2:01:49 AM10/26/17
to Chromium-discuss, pata...@gmail.com
this is a bad copy/paste :-(
I'm talking about allow-file-access-from-files option.
it always seems to be available in chromium...

Torne (Richard Coles)

unread,
Oct 26, 2017, 1:02:04 PM10/26/17
to pata...@gmail.com, Chromium-discuss
allow-file-access-from-files does what it sounds like: it lets one file: URL access any other file: URL (by default all file: URLs are considered separate origins and isolated from each other).

lacsaP Patatetom

unread,
Oct 27, 2017, 3:15:31 AM10/27/17
to Chromium-discuss, pata...@gmail.com
that's what I thought when interpreting the name of the option, but that doesn't concern XHR :-(
my goal is : how to allow XHR on file:// in chromium ?

Torne (Richard Coles)

unread,
Oct 31, 2017, 2:50:12 PM10/31/17
to pata...@gmail.com, Chromium-discuss
allow-file-access-from-files should affect XHR: it should allow one file:// origin to make an XHR to another file:// origin. Is that what you are doing, or is your use case something else? Can you provide an example of what you're trying to do?

lacsaP Patatetom

unread,
Nov 4, 2017, 6:03:34 AM11/4/17
to Chromium-discuss, pata...@gmail.com
yes, that's what I'm trying to do, but it doesn't work.
have a look here for more details.
what I'm concerned about is that when I'm using --allow-file-access-from-files, the error is not the same as without the flag...
Reply all
Reply to author
Forward
0 new messages