I run backend at http://localhost:4000 and frontend at http://localhost:3000. In server (Express) I set cors policy as:
http://localhost:4000
http://localhost:3000
cors