Where I should go to set the `DISCOURSE_ENABLE_CORS` env variable?

I believe you have to set
DISCOURSE_ENABLE_CORS: true
in your app.yml (somewhere in the env section)