cordova-plugin-advanced-http
cordova-plugin-advanced-http copied to clipboard
http.downloadFile() : 'withCredentials: true' support along with headers
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?