Skip to main content
  1. Blogs/

Allow Chrome to run WebGL apps from the local file system

·85 words·1 min·

I’m experimenting with a Unity application to see if it would be viable to run it in Web Assembly/WebGL. Firefox allows running the application locally with the file:/// notation, but Chrome does not. Chrome for security reasons disallows this type of access.

It would be a hastle to upload the package to a web server just to test things out. It turns out Chrome can be started with a command line argument to temporarily bypass this requirement: –allow-file-access-from-files

PS C:\> & 'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe'  --allow-file-access-from-files