@sunnyson Currently on 3.2.3. I’ve done quite a few fresh installs and one where I moved back to 3.0.6. I also restored a backup of my db but nothing seems to do the trick.
@DMehaffy That had not dawned on me
I hadn’t been sending any header with the request but just added this with an empty authorization header and now it’s giving me back a 404, so that’s new.
This is the axios function I’m using to login:
export const loginStrapi = () => {
return async (dispatch, getState) => {
const email = getState().login.loginFormData.email;
const password = getState().login.loginFormData.password;
try {
const config = {
headers: {
'Content-Type': `application/json`,
'Authorization': ''
}
}
const { data } = await axios.post('http://localhost:1337/auth/local', {
identifier: email,
password: password,
}, config);
console.log(data);
localStorage.setItem('tokenStrapi', 'Bearer ' + data.jwt);
} catch (error) {
console.log(error);
} finally {
}
};
};