fix register request
This commit is contained in:
@@ -2,7 +2,7 @@ import axios from 'axios';
|
|||||||
|
|
||||||
const RegistrationRequest = async ({ method, prefix, params, headers = {} }) => {
|
const RegistrationRequest = async ({ method, prefix, params, headers = {} }) => {
|
||||||
const baseURL = `${import.meta.env.VITE_API_SERVER}`;
|
const baseURL = `${import.meta.env.VITE_API_SERVER}`;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await axios({
|
const response = await axios({
|
||||||
method: method,
|
method: method,
|
||||||
@@ -12,7 +12,7 @@ const RegistrationRequest = async ({ method, prefix, params, headers = {} }) =>
|
|||||||
'Accept-Language': 'en_US',
|
'Accept-Language': 'en_US',
|
||||||
...headers,
|
...headers,
|
||||||
},
|
},
|
||||||
withCredentials: true,
|
// withCredentials: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
return response.data || {};
|
return response.data || {};
|
||||||
@@ -22,4 +22,4 @@ const RegistrationRequest = async ({ method, prefix, params, headers = {} }) =>
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export default RegistrationRequest;
|
export default RegistrationRequest;
|
||||||
|
|||||||
Reference in New Issue
Block a user