mirror of
https://github.com/jsbin/jsbin.git
synced 2026-01-25 15:38:56 +00:00
chore: revert old cookie tweak
This commit is contained in:
parent
f85a32e8a1
commit
b9bf910e0f
@ -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+$/, '')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user