dynamic baseURL
This commit is contained in:
@ -24,7 +24,7 @@ const axiosServer = async (context) => {
|
||||
//headers['X-From-Server'] = token; // Note: Using the entire token as a header value might not be intended
|
||||
|
||||
return axios.create({
|
||||
baseURL: common.getBaseUrl(),
|
||||
baseURL: common.getBaseUrl("", context.req || req),
|
||||
withCredentials: true,
|
||||
headers: headers,
|
||||
});
|
||||
|
Reference in New Issue
Block a user