Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / How to run your HTML project locally

Author
Message
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 7th Feb 2025 05:18 Edited at: 7th Feb 2025 05:21
Anyone who's exported the project to HTML5 soon realized they couldn't test it on their own computer without uploading it to a server. Why? Because CORS policy, that's why! It's a security thing that all browser enforce rather strictly these days. But there's a way around it. Launch the browser with web security disabled. As of right now, this doesn't appear to work in FF any longer but Chrome 123 it does. I don't know if you can disable it with Edge.

  • Create a new shortcut to Chrome on your desktop
  • Edit the Target under the shortcut properties by adding the --disable-web-security flag
    Ex. "C:\Program Files\Google\Chrome\Application\chrome.exe" --disable-web-security


Important things to consider and why I say to create a new shortcut. Label it "Chrome no CORS" so you know what it is. Don't browse the web with this instance of chrome because... security. Also, in the event chrome crashes or you close it by accident, when you restore your session this instance will no reopen automatically (which is probably a good thing).
Tiled TMX Importer V.2
XML Parser V.2
Base64 Encoder/Decoder
Purple Token - Free online hi-score database
Legend of Zelda
Pixel-Perfect Collision

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds

Login to post a reply

Server time is: 2025-05-09 01:11:31
Your offset time is: 2025-05-09 01:11:31