Steven Giesel 12/23/2024

Authenticate videos and images in Angular

Read Original

This technical article details the challenge of authenticating video and image requests in Angular when the source URL is protected by a JWT token. It walks through three attempted solutions: using a custom pipe with HttpClient, leveraging the MediaSource API, and finally implementing a request interceptor to proxy and authenticate each media request, explaining the pros and cons of each method.

Authenticate videos and images in Angular

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week