I have a problem with axios. Can I send data in the body of a GET request? I'm working with a clientAxios constant, which has the configuration data.
I realized a GET request like this:
const getOrganizations = async email => {
try {
const response = await clientAxios.get('/organizations', email);
console.log(response);
dispatch({
type: GET_ORGANIZATIONS,
payload: response.data
})
} catch (error) {
console.log(error.response);
}
}
But, when I check the backend console, no data was sent in the body request.