Skip to content
This repository has been archived by the owner on Mar 26, 2019. It is now read-only.

Latest commit

 

History

History
8 lines (6 loc) · 428 Bytes

README.md

File metadata and controls

8 lines (6 loc) · 428 Bytes

angular-img-http-src

Status: Go horse.

Problem

You used token based auth and you need to serve images from secured routes.

Solution

Use http-src instead of ng-src and it will fetch images using the $http service - meaning Authorization headers added via interceptors will be present - then build a Blob and set the src to an objectURL.