Skip to content
Myr

Defaulting httpOnly for Session cookies, however overridable

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by visionmedia · committed by visionmedia · parent 46a0301 · Browse files · 1 file+1 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−2 removed

  • other:+1 added−2 removed

1 file+1 added−2 removed

modified:lib/express/plugins/session.js+1 added-2 removed
177 unmodified lines
178 * @api private179 */180 181 init: function(options) {182 this.cookie = { httpOnly: true }183 this.merge(options || {})183 this.cookie = this.cookie || {}184 this.cookie.httpOnly = true184 this.store = new (this.dataStore || exports.Store.Memory)(options)185 this.startReaper()186 },187
45 unmodified lines