Interceptor Angular
Published in
2 min readJul 30, 2020
Interceptors are provided by an angular framework to basically intercept or modify HTTP requests before passing on to the server.
Its really handy in scenarios like Authentication, Logging, Appending Headers & may more.
Without interceptors, developers need to specify Authentication, Logging, or any other common information explicitly for the HTTP request method.
Different scenario’s where interceptors are commonly used are as follows:
- Logging
- Authentication