Fix CORS validation
Don't print valid results in the context of an error unless PRINT_ERROR_CONTEXT=true