title: How to download public Google Drive file from Chrome Extension?
body: <p>I have public Google Drive file like this one: <a href="https://docs.google.com/uc?id=0B8G77eDgeMdwMmkwcnA5eUV2M0U&amp;export=download" rel="nofollow">https://docs.google.com/uc?id=0B8G77eDgeMdwMmkwcnA5eUV2M0U&amp;export=download</a></p>
  
  <p>I want to download that file from a Chrome Extension.</p>
  
  <p>I have added these urls to the "permissions" element in the extension manifest (there are some redirects when trying to download the file and I tried to add them all): "https://*.docs.googleusercontent.com/","<a href="https://docs.google.com/" rel="nofollow">https://docs.google.com/</a>","<a href="http://docs.google.com/" rel="nofollow">http://docs.google.com/</a>","<a href="https://accounts.google.com/" rel="nofollow">https://accounts.google.com/</a>", "<a href="https://www.google.com/" rel="nofollow">https://www.google.com/</a>"</p>
  
  <p>When I try to download the file Chrome returns this error: </p>
  
  <pre><code>XMLHttpRequest cannot load https://docs.google.com/nonceSigner?nonce=s35adai1lp052&amp;continue=https://do…Ddownload%26h%3D16653014193614665626&amp;hash=inkfclb76vcru6uuoqkfp274hk5joqk9. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. 
  </code></pre>
  
  <p>It seems I have already allowed downloads for the url in question.</p>
  
  <p>If I add the <code>&lt;all_urls&gt;</code> permission the download succeeds.</p>
  
  <p>Any idea what permission I need to add? Thanks in advance.</p>