Skip to content
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.

Commit

Permalink
feat(config): add generic cookie options
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Oct 1, 2018
1 parent 600209e commit 9e82420
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion config/app.js
Expand Up @@ -27,7 +27,7 @@ module.exports = {
| to encrypted cookies, sessions and other sensitive data.
|
*/
appKey: Env.get('APP_KEY'),
appKey: Env.getOrFail('APP_KEY'),

http: {
/*
Expand Down Expand Up @@ -222,5 +222,22 @@ module.exports = {
filename: 'adonis.log',
level: 'info'
}
},

/*
|--------------------------------------------------------------------------
| Generic Cookie Options
|--------------------------------------------------------------------------
|
| The following cookie options are generic settings used by AdonisJs to create
| cookies. However, some parts of the application like `sessions` can have
| seperate settings for cookies inside `config/session.js`.
|
*/
cookie: {
httpOnly: true,
sameSite: false,
path: '/',
maxAge: 7200
}
}

0 comments on commit 9e82420

Please sign in to comment.