i saw "For reasons related to security, it is not possible to open the index.html file in the project folder by opening it directly in a browser. " in F1 help document. That's right and the browser doesn't run it because of ”CORS policy”. But,why does rmmv can? Is the game window not a browser window? I want to know how it works?
How does RMMV allow using XMLHttpRequest to load local files?
Learning JavascriptThe answer is simple.
NWJS, the open-source browser MV uses, is essentially modified Chromium so you're able to create native Javascript apps. So it uses node.js for certain functions and since it's made for native apps and not primarily for web browsing (although you could technically do it), the devs have removed the CORS security measure from nwjs.
NWJS, the open-source browser MV uses, is essentially modified Chromium so you're able to create native Javascript apps. So it uses node.js for certain functions and since it's made for native apps and not primarily for web browsing (although you could technically do it), the devs have removed the CORS security measure from nwjs.
Oh i see 🙂 thanks for the answer
Original thread: https://forums.rpgmakerweb.com/threads/how-does-rmmv-allow-using-xmlhttprequest-to-load-local-files.116977/