WriteError and CORS now public