Skip to content

Instantly share code, notes, and snippets.

@borella
Created April 25, 2014 10:48
Show Gist options
  • Save borella/11285316 to your computer and use it in GitHub Desktop.
Save borella/11285316 to your computer and use it in GitHub Desktop.
Google Chrome with local file access on Mac OS X
open /Applications/Google\ Chrome.app --args --allow-file-access-from-files
@midlantica
Copy link

Close Chrome first!

@interactiveRob
Copy link

Thank you!

@nathanparker
Copy link

Thanks!

@Muaddib64
Copy link

Thanks! Does anyone know how to make this permanent/tweak in the Chrome settings?

@iaomw
Copy link

iaomw commented Mar 3, 2020

Thanks, but it didn't work for me. I can still see red errors in Chrome console.
"Not allowed to load local resource: file:///Users/username/filename.jpg"

@MauritsDescamps
Copy link

I opened Chrome with "open /Applications/Google\ Chrome.app --args --allow-file-access-from-files" and still get the following error:
"Not allowed to load local resource: file:///Users/username/filename.js"

@llakewood
Copy link

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment