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
The response from apiCall.interceptors.response.use((response)=>{}) includes the properties baseURL and url. The response from apiCall.interceptors.request.use((response)=>{}) also include a baseURL and url field (). This is also the same for errors apiCall.interceptors.response.use((response)=>{}, (error)=>{}).
However the apiCall.interceptors.request.use response differs from apiCall.interceptors.response.use, where the url contains the full URL (therefore redundantly including baseURL), thus leading to 2 different code paths when determining the full URL by appending baseURL and url together.
In reference to the request
response
parameter below.packetfence/html/pfappserver/root/static.alt/src/utils/api.js
Line 43 in ef27359
The response from
apiCall.interceptors.response.use((response)=>{})
includes the propertiesbaseURL
andurl
. The response fromapiCall.interceptors.request.use((response)=>{})
also include abaseURL
andurl
field (). This is also the same for errorsapiCall.interceptors.response.use((response)=>{}, (error)=>{})
.However the
apiCall.interceptors.request.use
response differs fromapiCall.interceptors.response.use
, where theurl
contains the full URL (therefore redundantly includingbaseURL
), thus leading to 2 different code paths when determining the full URL by appendingbaseURL
andurl
together.apiCall.interceptors.request.use
: fullURL = baseURL + urlapiCall.interceptors.response.use
: fullURL = urlThe text was updated successfully, but these errors were encountered: