Working CORS wrapped errors
Flat debug logging