If I have an html page I'm loading at the path file://some/path/whatever.html
, can javascript in that file download whatever.html
and examine it? I know the same origin policy disallows access to other files, but I'm not clear on whether it also bars access to the current file when using the file://
protocol.
In short: does the same origin policy disallow any access to file:// protocol paths?
I looked at mdn's documentation on this, but it doesn't make it clear.