Original post, thanks for sgress454!
You'll need to disable several hooks, and also some middleware. First, in your
.sailsrc
file, set:"hooks": {
"session": false,
"sockets": false,
"pubsub": false,
"views": false,
"csrf": false,
"i18n": false,
"blueprints": false
}
Then in your
config/https.js
:middleware: {
order: [
'startRequestTimer',
// 'cookieParser',
// 'session',
'bodyParser',
'handleBodyParserError',
'compress',
'methodOverride',
'poweredBy',
'$custom',
'router',
// 'www',
// 'favicon',
'404',
'500'
]
}
No comments:
Post a Comment