Open botivegh-trendtype opened 5 years ago
Is there a way to set/add request header to the call? I would need to add 'Cache-Control': "private, no-cache, no-store" .
function urlToPromise(url) { return new Promise(function(resolve, reject) { JSZipUtils.getBinaryContent(url, function(err, data) { if (err) { reject(err); } else { resolve(data); } }); }); }
Hi , Did you find a way to do it ?
I also need to set a header to the request. Would be really appreciated to get some info on this.
did anyone found solution?
Is there a way to set/add request header to the call? I would need to add 'Cache-Control': "private, no-cache, no-store" .
function urlToPromise(url) { return new Promise(function(resolve, reject) { JSZipUtils.getBinaryContent(url, function(err, data) { if (err) { reject(err); } else { resolve(data); } }); }); }