Dev_With_Coffee

Veteran
Veteran
Joined
Jul 20, 2020
Messages
680
Reaction score
321
First Language
PT-BR
Primarily Uses
RM2k3
This error happens because you try to play a game in the web browser directly when running INDEX.HTML.

Modern browsers have a security system that prevents local files from trying to capture information from other sites via AJAX, but you can disable this security (CROSS-ORIGIN).

The tutorial is for the following browsers:
  • Google Chrome
  • Opera (Chromium)
  • Mozilla Firefox

Google Chrome/Opera:
To disable use the following command line:
--allow-file-access-from-files

  • Create a browser shortcut on the Desktop.
  • Right-click on it and select Properties.
  • In the "Destination" box enter the parameter after the second quotation mark with a space and save.

Mozilla Firefox:
In the browser address bar enter the following command:
about:config

Press [I'll be careful, I promise!] button.Do not change anything on this screen, just what was shown in the tutorial.

In the search field type:
security.fileuri.strict_origin_policy

Double click this item, it will change from "true" to "false".This is done, but you may need to restart the browser.
 

Dev_With_Coffee

Veteran
Veteran
Joined
Jul 20, 2020
Messages
680
Reaction score
321
First Language
PT-BR
Primarily Uses
RM2k3
I'm using version 87 of Chrome, and it's working.
You must have written the command line without a space.
 

zzmmorgan

I've used punchcards
Veteran
Joined
Jul 10, 2020
Messages
120
Reaction score
197
First Language
English
Primarily Uses
RMMV
I just installed IIS and tested from there. For more serious testing I have access to a friend's VPS :)

I honestly don't recall which method I used but most of them should be fairly easy to follow and then it's running off an actual website ( even if it's just your computer) so the browsers won't care.

I wouldn't recommend opening up your computer to be a full-blown webserver to the internet though unless you want to deal with additional security issues. Just keep it local. But overall it's a fairly good way to be able to test your HTML5 games without trying fake out your browser.
 

Dev_With_Coffee

Veteran
Veteran
Joined
Jul 20, 2020
Messages
680
Reaction score
321
First Language
PT-BR
Primarily Uses
RM2k3
In the Rpg Maker manual there is a tutorial teaching how to enable the local server in Windows.
(RPG Maker MV> Documentation> Local server configuration)
  1. MacOS
  2. Linux

But in this case, I showed you how to open index.html directly from Explorer, as a faster alternative.
 
Last edited:

Latest Threads

Latest Posts

Latest Profile Posts

I work late on the game so I sleep in then I wake up late so I have to work hard to make up for sleeping in meaning I work late again and sleep in again... what a nasty cycle.
I just had my first real fire. Dad made burgers for lunch and the grill caught fire. He tried to get water but I told him you should never put water on a grease fire. So I got him the fire extinguisher under the sink and we managed to put it out. I can still smell a little of the smoke coming from the patio, but at least it's clearing. It sure was scary though.
was rendering a video and window decided to bsod on me :D fun
Could not for the life of me figure out how to implement the dual/triple techs in Touch the Stars in a player-friendly way. Was describing all the problems to my wife and just rubber-ducked a solution that should work brilliantly.
I think I'm going to make each equippable item in my fantasy RPG grant a skill while its worn (in addition to the character's learned skills). Equipped gear that might be weaker in stats can still be useful in certain situations if the skill they grant exploits a weakness or resists a strength in the monsters being fought. This could potentially open up lots of build strategies to play with for fun.

Forum statistics

Threads
113,838
Messages
1,077,855
Members
147,904
Latest member
Urektra
Top