chore: revert old cookie tweak

This commit is contained in:
Remy Sharp 2017-05-13 15:05:12 +01:00
parent f85a32e8a1
commit b9bf910e0f

View File

@ -251,7 +251,6 @@ app.connect = function (callback) {
app.use(cookieSession({
keys: ['jsbin'],
cookie: {
secure: false, // allows cookie to be exchanged across http + https on purpose
maxAge: 365 * 24 * 60 * 60 * 1000,
// the domain must contain a dot and should not have a port
domain: app.get('url host').indexOf('.') === -1 ? undefined : '.' + app.get('url host').replace(/:\d+$/, '')