Skip to content

Commit

Permalink
internal: 调整中间件加载顺序
Browse files Browse the repository at this point in the history
  • Loading branch information
kk committed Jul 4, 2018
1 parent 41766e5 commit eb2b1c3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion plugins/astroboy-body/config/middleware.default.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const path = require('path');

module.exports = {
'astroboy-body': {
priority: 3,
priority: 15,
enable: true,
options: {
formidable: {
Expand Down
4 changes: 2 additions & 2 deletions plugins/astroboy-meta/config/middleware.default.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ module.exports = {

'astroboy-meta-node-engine': {
enable: true,
priority: 2
priority: 10
},

'astroboy-meta-rt': {
enable: true,
priority: 1
priority: 5
},

}
10 changes: 5 additions & 5 deletions plugins/astroboy-security/config/middleware.default.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ module.exports = {
},

'astroboy-security-cto': {
priority: 2,
priority: 10,
enable: true,
options: 'nosniff'
},

'astroboy-security-frameOptions': {
priority: 2,
priority: 10,
enable: true,
options: 'SAMEORIGIN'
},

'astroboy-security-hsts': {
priority: 2,
priority: 10,
enable: true,
options: {
maxAge: 365 * 24 * 3600
Expand All @@ -36,11 +36,11 @@ module.exports = {

'astroboy-security-xss': {
enable: true,
priority: 10
priority: 20
},

'astroboy-security-xssProtection': {
priority: 2,
priority: 10,
enable: true,
options: '1; mode=block'
},
Expand Down

0 comments on commit eb2b1c3

Please sign in to comment.