Hello!
I deployed my MERN app to Heroku, it is rendering properly and my third-party API search function works well. However, it seems like my GET and POST methods to add new data is not working now. I also lost the datas that were originally stored on my database. I got the below errors:
GET localhost/api/projects net::ERR_CONNECTION_REFUSED OPTIONS localhost/api/projects net::ERR_CONNECTION_REFUSED Uncaught (in promise) Error: Network Error at createError (createError.js:15) at XMLHttpRequest.handleError (xhr.js:87)
Originally I had the Mixed-Content error and I fixed that by adding the below to my index.html's head section: <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
Here is link to my app: https://fierce-sierra-67905.herokuapp.com/
This is my first time deploying MERN app on Heroku and have struggled for a while. Any help would be much appreciated!