angular http: how to call images with custom headers?

前端 未结 5 2246
不思量自难忘°
不思量自难忘° 2020-12-09 03:28

In the html view, images are displayed like this:

 

element.image.url points to a

5条回答
  •  孤街浪徒
    2020-12-09 04:18

    I am facing the same problem. The best solution I found is passing the Authorization token as a query parameter.

    For example :

    
    

    This way you can secure those images only for your REST consumers.

提交回复
热议问题