Hi

Bit stuck as I dont like the ide on firefox but have to use it because chrome is blocking a file.

I have a html and several js files. I also have a json formatted txt config file I am trying to get to be read into the js.
IIS server set up but I`m not sure it is using that atm.

Code:
loadConfig(){
		//ajax
		console.log("loadConfig");
		var reader = new XMLHttpRequest() || new ActiveXObject('MSXML2.XMLHTTP');

		reader.open('GET', './js/config.txt', true);
		reader.setRequestHeader("Content-type","text");
		reader.onreadystatechange = function(){
			if( reader.readyState == 4 ){
				//loop reader.responseText and import into the array
				//or parse as JSON and then loop
				console.log(reader);
				jObj = JSON.parse(reader.responseText);
Firefox gives a warning about the file incorrectly formatted but still parses it ok.
Chrome refuses to try stating
Failed to load file:///C:/Dev/html/js/config.txt: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.
I ran the html file directly in chrome. rather than through a web page address (I can try to set it up on the local host I guess).

because chrome blocks it the readder is an empty string to json parse errors.

I assume this is a security thing from chrome, is there a way around it or can I only test using local host? Or just use firefox?