skip to Main Content

Javascript – Axios error on changing the URL from http to https

const OTP_API = "https://192.168.4.10:8001/api/tatreports/getotp/"; const onNumberCheck = async () => { try { const response = await axios.get( `https://localhost:3005/api/is-user-exist/0${inputNumberValue}` ); console.log(response); if (response.status === 200) { setIsUserExist(true); // Send a notification when status is 200 notification.success({ message: ` سلام ${response.data.name}`,…

VIEW QUESTION
Back To Top
Search