protected void SetCorsHeaders(CorsHeaders cors = null) { if (cors == null) { return; } foreach (var header in cors.GetHeaders()) { TryAddHeader(header.Key, header.Value); } }