I am using API’s that are like ‘http://localhost:5170/houses’ while learning and developing a vue3 app that uses mysql for database and axios for the calls.
I can still call the data via api from database when the uploaded website is open on my pc.
But it gives an error when i call the data from the website i uploaded. The site still calls the localhost api. How do i change that for the website?
Omer Khan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1