Domains and email
Sign-in breaks between your subdomains
The app is on one subdomain, the API on another, and cookies or requests get blocked.
- What you get
- Cookie and cross-origin settings that match how your addresses are laid out.
- Paste it into
- Your AI tool, in your project
The prompt
My project runs across more than one address (for example the main site plus app. and api. subdomains), and sign-in or API calls fail between them. Map which address serves what and which requests cross between them. Then check the settings that have to agree: the cookie's domain, SameSite and Secure flags, the allowed origins and whether credentials are allowed, and the redirect addresses registered with my sign-in provider. Show me each mismatch with the file and line. Fix them with the narrowest setting that works, with no wildcard origin where credentials are sent, and tell me how to confirm it in the browser's network tab.
Use it
Open your AI tool (Claude Code, Codex or Cursor) in your project folder and paste it in.
More in Domains and email
Connect your domain to your site
You bought a domain and the DNS screen is a wall of record types.
Your domain doesn’t load or says Not secure
The records are in, hours have passed, and the site still isn’t there.
Make every version of your address go to one place
www, non-www, http and https all load, sometimes as different sites.
Your app’s emails land in spam
Sign-up and reset emails arrive late, in spam, or not at all.