Hi all,
I hope I'm not boring you with this, but I just discovered something
interesting...
Running my application on a local server is NOT the solution to my problem.
As I said before: when I call getSVGDocument() to get at the MIDI
information I've embedded in the SVG, Chrome still says
> Blocked a frame with origin "null" from accessing a frame with origin
> "null". Protocols, domains, and ports must match.
Chrome will only let me call getSVGDocument() on a local server, if I
run it with one of the following flags set:
--disable-web-security flag or --allow-file-access-from-files. See [1].
But now comes the interesting bit: If I run Chrome with one of those
flags set, I don't need the local server at all. The application runs
locally from anywhere on my computer without any problem.
[2] says:
> It is important to note that using these switches is not supported or
> recommended. They should only be used for temporary cases and may
> break in the future.
Does anyone know how likely they are to break?
all the best,
James
p.s. This application runs fine on the web in both Chrome and Firefox,
but getting it to work locally in FF would mean having to solve other
problems (loading the music font properly, and handling input MIDI
events)...
[1]
http://stackoverflow.com/questions/17950598/using-iframe-with-local-files-in-chrome/17950753#17950753
[2] http://www.chromium.org/developers/how-tos/run-chromium-with-flags