I have a angularjs SPA.
It calls via XHR:
https://docs.google.com/spreadsheets/d/e/xxxxx-xxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxx-/pub?gid=0&single=true&output=csv
which basically delivers a google sheet as CSV
since some days, i see a redirect, and there are no CORS headers any more. Before there have been CORS headers.
Has the API been changed? Is there some new API with CORS headers?
PS.: my workaround looks like this (on my ftp/php host):
<?php
$url = 'https://docs.google.com/spreadsheets/d/e/xxxxxxxxxxxxxx/pub?gid=0&single=true&output=csv';
$response = file_get_contents($url);
echo $response;