master
2022-03-25 c0f7b99859c8b958a3d1210a046b57dd1b89e411
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;
};
};