public static IDictionary<string, string> GetCorsResponseHeaders(
     this CorsEngine corsEngine,
     CorsRequestContext context,
     CorsOptions options)
 {
     return corsEngine
         .EvaluatePolicy(context, options.GetCorsPolicy())
         .ToResponseHeaders() ?? new Dictionary<string, string>();
 }
 public static IDictionary <string, string> GetCorsResponseHeaders(
     this CorsEngine corsEngine,
     CorsRequestContext context,
     CorsOptions options)
 {
     return(corsEngine
            .EvaluatePolicy(context, options.GetCorsPolicy())
            .ToResponseHeaders() ?? new Dictionary <string, string>());
 }
        public static bool EvaluateCorsPolicy(
            this CorsEngine corsEngine,
            CorsRequestContext context,
            CorsOptions options)
        {
            var result = corsEngine.EvaluatePolicy(context, options.GetCorsPolicy());

            return result.IsNotNull() && result.IsValid;
        }
        public static bool EvaluateCorsPolicy(
            this CorsEngine corsEngine,
            CorsRequestContext context,
            CorsOptions options)
        {
            var result = corsEngine.EvaluatePolicy(context, options.GetCorsPolicy());

            return(result.IsNotNull() && result.IsValid);
        }