changes allowed hosts causing the app to fail when debug turned to false