diff --git a/CorsServer/CorsServer.WebApi31/Config/CorsOption.cs b/CorsServer/CorsServer.WebApi31/Config/CorsOption.cs new file mode 100644 index 0000000..4ccd71e --- /dev/null +++ b/CorsServer/CorsServer.WebApi31/Config/CorsOption.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace CorsServer.WebApi31 +{ + public class CorsOption + { + /// + /// 策略名称 + /// + public string PolicyName { get; set; } + + /// + /// 允许跨域的域名列表 + /// + public List Origins { get; set; } + + /// + /// 允许跨域的方法 + /// + public List Methods { get; set; } + + /// + /// 允许跨域的请求头 + /// + public List Headers { get; set; } + + /// + /// 允许跨域的ExposedHeader + /// + public List ExposedHeaders { get; set; } + } +}