chromium / axiom

Axiom Project
https://chromium.github.io/axiom/web_shell/
Apache License 2.0
53 stars 26 forks source link

Investigate: CORS-related error while downloading a Google Sheet #155

Open ussuri opened 9 years ago

ussuri commented 9 years ago

Steps:

mound gdrive
cat gdrive:/some_google_sheet

The resulting XHR (which corresponds to 'text/csv' conversion for the sheet) errors out, printing this to the console:

XMLHttpRequest cannot load https://docs.google.com/spreadsheets/export?id=1QDSdc5TByduLTlVc_8-uh2BlJnJIpDRxuChgcbHB1pQ&exportFormat=csv. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://localhost:8080' is therefore not allowed access.

At the same time, Google Docs can be downloaded just fine (using 'text/plain' conversion). One interesting data point is that URLs in entry.exportLinks look very different for Sheets and Docs.