Report this

What is the reason for this report?

docker is running an internal network, but on droplet gets CORS errors

Posted on October 15, 2021

I am using a droplet as a dev environment for a dockerized application (node, nginx, postgresql, graphql, react). Our docker app sets up an internal network so that different components can communicate with each other. The docker container builds and runs great, but internal calls from the frontend to the backend are getting blocked in the droplet based on CORS errors.

We can run this thing literally everywhere else with no CORS errors - are there droplet-specific settings I need to create?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.