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

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

1 Like

I found answer :smile:

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