|
@@ -65,7 +65,7 @@ module.exports = appInfo => {
|
|
|
config.pageSize = 15;
|
|
config.pageSize = 15;
|
|
|
|
|
|
|
|
// 中间件
|
|
// 中间件
|
|
|
- config.middleware = ['gzip', 'urlParse', 'sortFilter', 'autoLogger', 'autoFinishLogger'];
|
|
|
|
|
|
|
+ config.middleware = ['httpHeader', 'gzip', 'urlParse', 'sortFilter', 'autoLogger', 'autoFinishLogger'];
|
|
|
|
|
|
|
|
// session配置
|
|
// session配置
|
|
|
config.session = {
|
|
config.session = {
|
|
@@ -93,6 +93,10 @@ module.exports = appInfo => {
|
|
|
sessionName: 'csrfToken_j', // csrf token's session name
|
|
sessionName: 'csrfToken_j', // csrf token's session name
|
|
|
bodyName: '_csrf_j', // request csrf token's name in body
|
|
bodyName: '_csrf_j', // request csrf token's name in body
|
|
|
queryName: '_csrf_j', // request csrf token's name in query
|
|
queryName: '_csrf_j', // request csrf token's name in query
|
|
|
|
|
+ cookie: {
|
|
|
|
|
+ httpOnly: true,
|
|
|
|
|
+ // secure: true, // 如果站点使用了HTTPS,可以开启此选项
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
};
|
|
};
|
|
|
|
|
|
|
@@ -253,7 +257,7 @@ module.exports = appInfo => {
|
|
|
config.fujianOssPath = 'https://jiliang-saas-oss-cdn.smartcost.com.cn/';
|
|
config.fujianOssPath = 'https://jiliang-saas-oss-cdn.smartcost.com.cn/';
|
|
|
config.fujianOssFolder = '';
|
|
config.fujianOssFolder = '';
|
|
|
|
|
|
|
|
- config.syncUrl = 'http://sync.jl.smartcost.com.cn/';
|
|
|
|
|
|
|
+ config.syncUrl = 'https://jl-sync.smartcost.com.cn/';
|
|
|
|
|
|
|
|
// 项目管理跳转路径
|
|
// 项目管理跳转路径
|
|
|
config.managementPath = 'https://pm.smartcost.com.cn';
|
|
config.managementPath = 'https://pm.smartcost.com.cn';
|