How to set authorization header in ng-cordova file-transfer plugin


#1

I need to set authorization header in request .
How to set authorization header in ng-cordova file-transfer plugin ?

If any body having any code snippet regarding this would be helpful.

Thanks


#2

I found answer :smile:

var params = new Object();
    params.headers = {Authorization: log_cred};
    options.params = params;