jszip-utils icon indicating copy to clipboard operation
jszip-utils copied to clipboard

Set HTTP Request Header

Open botivegh-trendtype opened this issue 6 years ago • 3 comments

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); } }); }); }

botivegh-trendtype avatar Sep 18 '19 16:09 botivegh-trendtype

Hi , Did you find a way to do it ?

OussamaM1 avatar Jun 28 '21 00:06 OussamaM1

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

nuno-ferrao avatar Jan 13 '22 13:01 nuno-ferrao

did anyone found solution?

Roopa-Workspace avatar Mar 14 '23 07:03 Roopa-Workspace