Closed bbudd closed 8 years ago
I except that you'll hit a bunch of other problems using content hosted at file:// Any reason not to use localhost?
@bbudd @garemoko is correct, some browser implementations of CORS prevent any requests being made cross scheme, for the ones that do work cross scheme they are a limited set and almost exclusively to 'https', and if you can find one that works from a file://
scheme then you'd further have to expect the LRS to have specific headers allowing it which the spec doesn't require and I think you are unlikely to find. So we've hobbled parseURL
on purpose. AFAIK the only other place we use it internally is for more
URL handling, but since an LRS must be talking over HTTP we can be safe assuming http
or https
as the scheme for an endpoint.
if I do
where
window.location.toString()
starts withfile:
, the instantiation fails.Specifically here - when it starts with
file:
thenmatch
becomes null, andmatch[x]
can no longer even beundefined
, it throws an error.