I have this password reset function here which works perfectly fine on desktop in all browsers.
const onFormSubmit = async (e) => {
e.preventDefault();
if (!email || !email.includes('@') ) {
setErrMessage('Die eingegebenen Daten sind fehlerhaft')
return;
}
const data = {
email: email
}
try{
const res = await axios.post(`${baseurl}/api/auth/password-reset/`, data, {
headers: {'Content-type':'application/json'}
})
setMessage(res.data.message)
setErrMessage('')
//Await for data for any desirable next steps
//const data = await res.json();
// console.log(data);
}catch(error){
const e = error.response.data.message
setErrMessage(e)
setMessage('')
return
}
};
Now I just switched to my iPhone on safari and tried to reset the password by filling in the information and clicking on the button, but nothing happens. Installing google browser on my iPhone repeating this also works perfectly fine so the problem has to do with safari mobile..
Does anybody has an idea? The whole function seems to not getting called at all.