Skip to content

Instantly share code, notes, and snippets.

@borella
Created April 25, 2014 10:48
Show Gist options
  • Select an option

  • Save borella/11285316 to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown

Close Chrome first!

@interactiveRob

Copy link
Copy Markdown

Thank you!

@nathanparker

Copy link
Copy Markdown

Thanks!

@Muaddib64

Copy link
Copy Markdown

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

@iaomw

iaomw commented Mar 3, 2020

Copy link
Copy Markdown

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
Copy Markdown

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
Copy Markdown

Thank you!

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