我尝试使用此代码从 Google 电子表格中获取技术数据
function init() {
Papa.parse(public_spreadsheet_url, {
download: true,
header: true,
complete: showInfo
})
}
Run Code Online (Sandbox Code Playgroud)
这会产生以下 CORS 错误:
Access to XMLHttpRequest at 'link to shared Google Sheet CSV' from origin 'my domain' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.