wollio/angular2_photoswipe

Support for images with header information

Opened this issue · 3 comments

Hi there,
I just wondered if there is support for pictures that have to be loaded with an Authoruzation Header.
For normal tags you can develop a specific pipe. But how can you achieve this with this library where you pass the image object to the ?

Thanks and best regards!

An interceptor should work.

https://angular.io/api/common/http/HttpInterceptor
I'll provide an example

Wow, that answer was quick! Thanks, I will look forward for the example.
I‘m working with 0auth/angular-jwt. Shouldn’t that do the Job?

Sadly it isnt possible at the moment.
dimsemenov/PhotoSwipe#1252