This issue might not be directly related to caching, but rather to how CORS is configured in your Flask app. Ensure you’ve properly set up CORS on the backend. You can use the Flask-CORS extension to handle this easily. Add it to your Flask app like this:
from flask_cors import CORS
app = Flask(name)
CORS(app)
This will enable CORS for all routes. If you need more granular control, you can specify which routes should allow CORS. Also, double-check that your server is actually running on localhost:5000 and that the frontend is making requests to the correct URL. If the issue persists, try clearing your browser cache or using a different browser to rule out any client-side caching problems.