|
@@ -84,6 +84,9 @@ module.exports = appInfo => {
|
|
|
|
|
|
// 安全性配置
|
|
|
config.security = {
|
|
|
+ xframe: {
|
|
|
+ enable: false, // X-Frame-Options 内嵌关闭
|
|
|
+ },
|
|
|
csrf: {
|
|
|
ignoreJSON: false, // 默认为 false,当设置为 true 时,将会放过所有 content-type 为 `application/json` 的请求
|
|
|
cookieName: 'csrfToken_j', // csrf token's cookie name
|