The Heroku install has only been available for a few weeks, we are still discovering best practices.
You need to create and configure your app on a local desktop install and then push that to Heroku. If you set up CORS from the admin console running on Heroku then the config file will not be persistent. Let us know if that works for you.
If developers dont have an answer on the forum we also have paid support.