Added Access-Control-Allow-Origin header to error response