Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

cookie-settings.js 400 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
  1. module.exports = {
  2. httpOnly: true, // can't access these cookies through browser JavaScript
  3. secure: !['test', 'development'].includes(process.env.NODE_ENV),
  4. // requires https protocol
  5. // `secure` doesn't work with supertest at all
  6. // http://localhost fails on chrome with secure
  7. sameSite: 'lax'
  8. // most browsers are "lax" these days,
  9. // but older browsers used to default to "none"
  10. }
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...