From: deepak1556 Date: Tue, 12 May 2015 12:51:48 +0000 (+0530) Subject: allowing file:// URI to access other file:// URIs for filesytem api use X-Git-Tag: v0.26.1~16^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=32ba219146c06aac844732aaccef064744a397cf;p=electron.git allowing file:// URI to access other file:// URIs for filesytem api use --- diff --git a/atom/app/atom_main_delegate.cc b/atom/app/atom_main_delegate.cc index c9cdc77e..e73cc06b 100644 --- a/atom/app/atom_main_delegate.cc +++ b/atom/app/atom_main_delegate.cc @@ -78,6 +78,9 @@ void AtomMainDelegate::PreSandboxStartup() { // Disable renderer sandbox for most of node's functions. command_line->AppendSwitch(switches::kNoSandbox); + // Allow file:// URIs to read other file:// URIs by default. + command_line->AppendSwitch(switches::kAllowFileAccessFromFiles); + #if defined(OS_MACOSX) // Enable AVFoundation. command_line->AppendSwitch("enable-avfoundation");