DEV Community

Discussion on: Dockerize a React app with Node.js backend connected to MongoDb

Collapse
 
emilkloeden profile image
Emil Kloeden • Edited

Hi, this series is fantastic, thank you. I built something heavily influenced by this but ran into cors issues when running the production deployment and trying to access it via my host machines IP address. Is there some low hanging fruit I should try? I have tried changing my react app to fetch data from localhost:3001 to api:3001 but that is also unsuccessful. Code is here if anyone has time to look :) github.com/emilkloeden/covid.

Collapse
 
bhuwanadhikari profile image
Bhuwan Adhikari

Have you found out any solution? I have been stucked in same situation.

Some comments have been hidden by the post's author - find out more