"Your Browser does not allow to read local Files" despite playing as a browser game

Hey all,

One of my site visitors complains that he cannot play my sample game (http://play.aerosys.blog/rng-maps-addons/), but he sometimes gets this error. Not every time. I googled this error and found some threads that explain that this error occurs when playing locally, but this is not the case.

I asked some other people to try out the link, and it worked fine for all of them. So until now, he's the only person facing issues.

He's using Firefox.

He also send me this screenshot where I noticed this status code 300. It does not appear when I access my game.

1688240648592.png


Server response 300 is likely a server error, but I might be wrong. The game is hosted by a hosting service, so right now, I don't have detailed information about what server software they're using. "PHP 8.1" is the only information I have right now. In the end, I don't have any idea if this 300 error is actually the source of trouble.

We tracked down the line of code that throws this error. Appareantly, it's the "testXhr" error in main.js. "this.xhrSucceeded" is never set to true.

1688240911559.png
Does the same happens when he tries to play with a different browser?

The original error message is basically part of a security feature adopted by all modern browsers, and my first guess would be that he set his security setting in the browser to be too restrictive.
But if that is true any test with a different browser on default settings should work.

If different browsers show the same error I would check the firewall settings next, because your later error descriptions might be caused by connectivity problems through either firewall or internet provider.

EDIT: and usually you cann ignore sourcemap errors - that is a debugging feature that is disabled for RM-games as the editor does not provide the required sourcemaps at all.
The HTTP 300 Multiple Choices redirect status response code indicates that the request has more than one possible response. The user-agent or the user should choose one of them. As there is no standardized way of choosing one of the responses, this response code is very rarely used.

I wonder why you got such an extremely unusual error code in the first place. I mean, it's not like it's saying you can't open a file or the like.

EDIT: It runs fine on Chrome.

Original thread: https://forums.rpgmakerweb.com/threads/your-browser-does-not-allow-to-read-local-files-despite-playing-as-a-browser-game.158874/