This is required when developing locally using docker. The browser is not run inside docker and thus http://api:5000 cannot be reached! It is instead on localhost:1234 and the backend is exposed at localhost:8080. When the frontend calls the backend it's thus a cross request.
This is only really required for development. When deploying with flask this won't be necessary since they will be on the same host.
Allow any cross origin (at least for now)
This is required when developing locally using docker. The browser is not run inside docker and thus
http://api:5000
cannot be reached! It is instead onlocalhost:1234
and the backend is exposed atlocalhost:8080
. When the frontend calls the backend it's thus a cross request.This is only really required for development. When deploying with flask this won't be necessary since they will be on the same host.