Angular 12: intercepting requests and responses

Achraf Housni
3 min readAug 1, 2021

🕵️‍♂️ How to use Angular interceptor to control requests and incoming responses?

When the client application handles the HTTP requests and responses, there is the possibility to customize them by :

1- adding headers to all requests (for example, authorization token, content type)
2- by logging (if we want to log the entire request/ response )
3- caching.

--

--