Question · JavaScript and React course · Module 11: Data Fetching and APIs
Interceptors in Axios
What are interceptors used for in Axios?
Answer options
- To compress data before sending it to the server
- To intercept requests/responses and modify them, e.g., automatically adding authorization tokens
- To block requests to unknown servers
- To speed up HTTP requests by caching DNS
You can check the correct answer by solving this task in the CodeWorlds game.