From c0f7b99859c8b958a3d1210a046b57dd1b89e411 Mon Sep 17 00:00:00 2001
From: master <master@163.com>
Date: 星期五, 25 三月 2022 14:17:02 +0800
Subject: [PATCH] add cros
---
src/config/config.default.ts | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/src/config/config.default.ts b/src/config/config.default.ts
index 1d88baf..94bd5cc 100644
--- a/src/config/config.default.ts
+++ b/src/config/config.default.ts
@@ -44,7 +44,14 @@
config.security = {
csrf: {
enable: false,
+ ignoreJSON: true,
},
+ domainWhiteList: ['http://localhost:9100', 'http://192.168.1.4:9100'],
+ };
+
+ config.cors = {
+ origin: '*', // 鍖归厤瑙勫垯 鍩熷悕+绔彛 *鍒欎负鍏ㄥ尮閰�
+ allowMethods: 'GET,HEAD,PUT,POST,DELETE,PATCH',
};
// cool-admin鐗规湁鐨勯厤缃�
@@ -83,4 +90,4 @@
};
return config;
-};
+};
\ No newline at end of file
--
Gitblit v1.9.1