Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for images with header information #24

Open
javanese84 opened this issue Jun 13, 2019 · 3 comments
Open

Support for images with header information #24

javanese84 opened this issue Jun 13, 2019 · 3 comments

Comments

@javanese84
Copy link

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!

@ghost
Copy link

ghost commented Jun 13, 2019

An interceptor should work.

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

@javanese84
Copy link
Author

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?

@ghost
Copy link

ghost commented Jun 14, 2019

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

@ghost ghost added the enhancement label Jun 14, 2019
@ghost ghost self-assigned this Jun 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant