]> khamidou — GitHub mirrors - electron.git/commitdiff
allowing file:// URI to access other file:// URIs for filesytem api use
authordeepak1556 <hop2deep@gmail.com>
Tue, 12 May 2015 12:51:48 +0000 (18:21 +0530)
committerdeepak1556 <hop2deep@gmail.com>
Tue, 12 May 2015 12:51:48 +0000 (18:21 +0530)
atom/app/atom_main_delegate.cc

index c9cdc77e1173105a10ec0f13451a7c5d5da691f7..e73cc06bc464b33895b988e0cac60e4329e97ae2 100644 (file)
@@ -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");