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

I don’t think you can do that.

There is a hidden site setting that allows embedding an iframe but I suspect that it’s not available on standard or business plans. You can contact your support contact to ask.

Embedding discourse on an iframe is not officially supported.