I'm trying to follow a melonJS tutorial. It says I should disable cross-origin request using one of two methods:
--disable-web-security
--allow-file-access-from-files**
I've tried both of these in my command prompt as such:
C:\Users\danniu>C:\Users\danniu\AppData\Local\Google\Chrome\Application\Chrome.e
xe --allow-file-access-from-files
C:\Users\danniu>C:\Users\danniu\AppData\Local\Google\Chrome\Application\Chrome.e
xe --disable-web-security
When I try to run the game in Chrome I'm still getting this error:
XMLHttpRequest cannot load file:///C:/Users/danniu/Desktop/JavaScript/melonJS/data/map/area01.tmx. Cross origin requests are only supported for HTTP.
What am I doing wrong?
Thanks