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; }; };