1
0
mirror of synced 2025-12-22 03:16:52 -05:00
Files
docs/lib/cookie-settings.js
Kevin Heis 380c4dcc82 Hydro exit event (#16067)
* 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
2020-10-21 09:42:02 -07:00

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"
}