# Secure Cookies with SameSite: Lax, Strict, and Cross-Site Rules

DevFeed: [Secure Cookies with SameSite: Lax, Strict, and Cross-Site Rules](<https://devfeed.tech/articles/secure-cookies-with-samesite-lax-strict-and-cross-site-rules-77565.md>)

Original publisher: [Read original article](<https://www.sitepoint.com/secure-cookies-samesite-reference/>)

Author: SitePoint Team

Published: 2026-10-08T22:00:57Z

Content type: tutorial

Language: en

Sources: [SitePoint](<https://devfeed.tech/sources/sitepoint.md>)

Topics: [Application Security](<https://devfeed.tech/topics/application-security.md>), [Cross-origin resource sharing (CORS)](<https://devfeed.tech/topics/cors.md>), [XSS](<https://devfeed.tech/topics/xss.md>), [Node.js](<https://devfeed.tech/topics/node-js.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [app](<https://devfeed.tech/tags/app.md>), [application-security](<https://devfeed.tech/tags/application-security.md>), [applications](<https://devfeed.tech/tags/applications.md>), [article](<https://devfeed.tech/tags/article.md>), [attacks](<https://devfeed.tech/tags/attacks.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [axios](<https://devfeed.tech/tags/axios.md>), [browser](<https://devfeed.tech/tags/browser.md>), [browsers](<https://devfeed.tech/tags/browsers.md>), [chrome](<https://devfeed.tech/tags/chrome.md>), [chromium](<https://devfeed.tech/tags/chromium.md>), [cookies](<https://devfeed.tech/tags/cookies.md>), [copy](<https://devfeed.tech/tags/copy.md>), [django](<https://devfeed.tech/tags/django.md>), [express](<https://devfeed.tech/tags/express.md>), [next-js](<https://devfeed.tech/tags/next-js.md>), [none](<https://devfeed.tech/tags/none.md>), [patterns](<https://devfeed.tech/tags/patterns.md>), [programming](<https://devfeed.tech/tags/programming.md>), [rules](<https://devfeed.tech/tags/rules.md>), [web](<https://devfeed.tech/tags/web.md>), [web-security](<https://devfeed.tech/tags/web-security.md>)

## AI overview

A technical reference explains how SameSite cookie settings interact with Secure and HttpOnly flags, browser behavior, and cross-site requests. It provides recommendations and implementation examples for Express, Next.js, and Django, plus a checklist for debugging cookie issues.

## Source excerpt

A technical reference on configuring SameSite cookie attributes (Strict, Lax, None) alongside Secure and HttpOnly flags, with implementation patterns for Express, Next.js, and Django. Continue reading Secure Cookies with SameSite: Lax, Strict, and Cross-Site Rules on SitePoint.