Cookie: Cookies the browser is sending back to the server for this domain. The Cookie request header carries the cookies a browser has stored for the site back to the server, such as session=abc123; theme=dark. The server set them earlier with Set-Cookie. This is how login sessions work on most websites. The session cookie identifies the browser, and the server looks up who is logged in.
Because cookies are sent with every request to the domain, keep them few and small. Large cookies slow down every page and image request. For session cookies, set HttpOnly so JavaScript cannot read them, Secure so they only travel over HTTPS, and SameSite to limit cross-site use. Under the GDPR and ePrivacy rules, functional session cookies are fine, but tracking cookies need consent first.
Master authentication and authorization patterns including JWT, OAuth2, session management, and RBAC to build secure, scalable access control systems. Use when implementing auth systems, securing APIs, or debugging security issues.
Use when reviewing or setting HTTP response headers for a web app or API - security headers (Content-Security-Policy, Strict-Transport-Security, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy), CORS headers, caching headers (Cache-Control, ETag, Last-Modified, Vary) and cookies (Set-Cookie flags). Also use when a security scan reports missing headers.
OWASP Top 10 security audit and secure coding guidelines for Laravel + React/Inertia.js applications. Use when auditing for vulnerabilities ("run OWASP audit", "security review", "check my app security") or writing secure Laravel code involving auth, payments, file uploads, or API design. Triggers on security-related tasks, payment handling, authentication, or any request to audit a Laravel codeba