cordova-plugin-advanced-http icon indicating copy to clipboard operation
cordova-plugin-advanced-http copied to clipboard

http.downloadFile() : 'withCredentials: true' support along with headers

Open venkatesh8 opened this issue 4 years ago • 0 comments

I am trying to download an image from URL where it returns blob in ionic 5. My API is cookie based authentication as well as headers. How to check if the downloadFile() method supports cookies sync? is cookies support there? if Yes, please provide a sample code to test. myCode: const url = 'https://abc.com'; const headers = { 'Content-Type': 'application/json', 'Accept': '*/*' };

this.http.downloadFile(url, {}, headers).then(data=>{ console.log(data); });

how to pass withCredentials: true flag in the above method call?

venkatesh8 avatar Nov 03 '20 07:11 venkatesh8