I want to use the maintenance mode on Heroku.
But for an API, the maintenance mode does not seem to work. My API calls are stopped in their tracks because there is no header 'Access-Control-Allow-Origin' present. So there is no way to know if the API is in maintenance mode—or if it's just not responding.
Is there a way to use the Heroku maintenance mode when the app is an API?