I am not sure why it works in one context and not another, but basically cannot just go GET
a file if you are not using http
. See these for details on why this is the case. I've never used IntelliJ, so I cannot speak to the specifics of that context, unfortunately.
http://stackoverflow.com/questions/8449716/cross-origin-requests-are-only-supported-for-http-but-its-not-cross-domain
http://stackoverflow.com/questions/3102819/chrome-disable-same-origin-policy
http://stackoverflow.com/questions/10752055/cross-origin-requests-are-only-supported-for-http-error-but-im-loading-a-co