I have a frontend that sends requests to the backend over localhost on a different port. On my local machine it works flawlessly, but when deployed I get connection errors and the fetch fails. It is not a CORS error.
Failed to load resource: net::ERR_CONNECTION_REFUSED
Classifier.tsx:26 POST http://localhost:8001/classify net::ERR_CONNECTION_REFUSED
It looks like that in the browser console. The tricky thing is that on one login it did work, but now it is not working again. I thought that the problem might be that the containers are on different network, but according to Bing Chat, they are supposed to be on the same one. What should I do?