ionic-image-loader icon indicating copy to clipboard operation
ionic-image-loader copied to clipboard

Whitelist domains that use custom header

Open ruudboon opened this issue 7 years ago • 0 comments

Only some of my request require a authentication and don't want to send it to every domain. Could we add some kind of white list of domains that should have this header?

this.imageLoaderConfig.setHttpRequestOptions({
  headers: {
    Authorization: 'Basic dGVzdHVzZXJuYW1lOnRlc3RwYXNzd29yZA=='
  }
});

ruudboon avatar Oct 25 '18 12:10 ruudboon