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

dougmoscrop/angular-img-http-src

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published