1
0
mirror of synced 2025-12-21 19:06:49 -05:00
Files
docs/lib/cookie-settings.js
Kevin Heis 8a56437c93 Pretty format (#20352)
* Update prettier flow to include JS

* Run prettier

* ...run prettier
2021-07-14 14:35:01 -07:00

11 lines
399 B
JavaScript

export default {
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"
}