Express API with CORS enabled


#1

Hi there,
I’m trying to run a microservice client app that connects to an express API with CORS enabled.
I would like to know how can I use process.env.PORT, process.env.IP, instead of localhost:3000:

$.get(‘http://localhost:3000/todos’, function(…