From 931a55b888f6a8ff51f51f3e4abf93a3d95afef4 Mon Sep 17 00:00:00 2001 From: bicijinlian Date: Wed, 28 Apr 2021 14:57:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CorsServer.WebApi31/Config/CorsOption.cs | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 CorsServer/CorsServer.WebApi31/Config/CorsOption.cs 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; } + } +}