Error 500 fix for allowed hosts