Question · Angular course · Module 9: HttpClient

Purpose of Interceptors

What are HTTP Interceptors used for?

Answer options

  • For blocking unwanted requests
  • For modifying requests/responses globally (e.g. adding a token)
  • For caching responses
  • For compressing data

You can check the correct answer by solving this task in the CodeWorlds game.