You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can do this currently by making an interceptor function and passing the filtered request/response to the logger. All it does is print and return the request that was passed.
axios.interceptors.request.use((request)=>{const{password: _ignored1, ...filteredData}=request.dataconst{password: _ignored2, ...filteredParams}=request.paramsconstfilteredRequest={ ...request,data: filteredData,params: filteredParams}AxiosLogger.requestLogger(filteredRequest)returnrequest// still send axios the unfiltered version});
Feature
output
The text was updated successfully, but these errors were encountered: