Location: Where the client should redirect (3xx) or find a newly-created resource (201). The Location header tells the client where to go next. With a redirect, such as 301 or 302, it holds the new URL. With 201 Created, it points to the newly created resource, such as /api/orders/42. Browsers follow redirect locations automatically. API clients can use the location after a create request to fetch or link to the new item without guessing its URL.
Be careful with redirects based on user input, such as a ?next= parameter after login. If you redirect to whatever URL is given, attackers can send people from your trusted domain to a phishing site. Only allow relative paths or a fixed list of domains. Frameworks like Laravel offer helpers such as redirect()->intended() that handle this safely.
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.
'Expert-level browser automation, debugging, and performance analysis using Chrome DevTools MCP. Use for interacting with web pages, capturing screenshots, analyzing network traffic, and profiling performance.'
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