* Start a basic exit event * Combine to one performance function * Lint * Fancy operators * Update events.js * Update events.js * Update cookie-settings.js * Add scroll tracking * Tell "standard" to use babel-eslint * Throttle scroll tracking * Lint * Use sendBeacon * Update index.js
11 lines
400 B
JavaScript
11 lines
400 B
JavaScript
module.exports = {
|
|
httpOnly: true, // can't access these cookies through browser JavaScript
|
|
secure: !['test', 'development'].includes(process.env.NODE_ENV),
|
|
// requires https protocol
|
|
// `secure` doesn't work with supertest at all
|
|
// http://localhost fails on chrome with secure
|
|
sameSite: 'lax'
|
|
// most browsers are "lax" these days,
|
|
// but older browsers used to default to "none"
|
|
}
|