Black Holes and Angular Interceptors
summary
Claims that an Angular black hole interceptor can catch every outgoing HTTP request, clone it, and add an Authorization header so the server sees the token. Shows an auth service for set/get token, implements the HTTP Interceptor interface with an intercept(req) clone-and-modify flow, and registers interceptors in an HTTP interceptor providers array. Demonstrates it working for all requests and sketches other uses: logging, caching, 201-based notifications, and error handling.
AI-written summary · about
chapters (4)
- 0:00Introduction and background
- 0:58The science of black holes
- 2:04Implementing interceptors
- 4:09Use cases and resources
related talks
20mHttp Interceptors: The Room Where It Happens
28mCaught in the middle!
26mThe Science of Authenticating Angular Apps
25mAuthstronomy: The Science of Authenticating Angular Apps
33mMake your Angular app a max security prison
39mLogin and Access Control in Angular
27mCookies versus tokens: a paradoxical choice
30mThe science of authenticating Angular apps
