'How to add Authorization Header to the link in NzImage's nzSrc

I would like to ask if there's anyway to force adding a Header Authorization into the GET request when using the nzSrc tag ?

Solution tried:

  • I've followed this article and it works. However, I must use [src] instead of [nzSrc] and if I use [src], I cannot have the preview function where I can click the image to enlarge and view it.


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source