From 931a55b888f6a8ff51f51f3e4abf93a3d95afef4 Mon Sep 17 00:00:00 2001
From: bicijinlian <bicijinlian@163.com>
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
+    {
+        /// <summary>
+        /// 策略名称
+        /// </summary>
+        public string PolicyName { get; set; }
+
+        /// <summary>
+        /// 允许跨域的域名列表
+        /// </summary>
+        public List<string> Origins { get; set; }
+
+        /// <summary>
+        /// 允许跨域的方法
+        /// </summary>
+        public List<string> Methods { get; set; }
+
+        /// <summary>
+        /// 允许跨域的请求头
+        /// </summary>
+        public List<string> Headers { get; set; }
+
+        /// <summary>
+        /// 允许跨域的ExposedHeader
+        /// </summary>
+        public List<string> ExposedHeaders { get; set; }
+    }
+}