Stuk / jszip-utils

Other
230 stars 193 forks source link

Set HTTP Request Header #27

Open botivegh-trendtype opened 5 years ago

botivegh-trendtype commented 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); } }); }); }

OussamaM1 commented 3 years ago

Hi , Did you find a way to do it ?

nuno-ferrao commented 2 years ago

I also need to set a header to the request. Would be really appreciated to get some info on this.

Roopa-Workspace commented 1 year ago

did anyone found solution?