From 75120e269fc25345e160a3783427333b6d8736d9 Mon Sep 17 00:00:00 2001 From: NoahLan <6995syu@163.com> Date: Fri, 4 Aug 2023 16:59:11 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0cors=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/config/cors.go | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 core/config/cors.go diff --git a/core/config/cors.go b/core/config/cors.go new file mode 100644 index 0000000..a524e0c --- /dev/null +++ b/core/config/cors.go @@ -0,0 +1,6 @@ +package config + +// CORSConf stores the configuration for cross domain +type CORSConf struct { + Address string `json:",env=CORS_ADDRESS"` +}