# Sign-in breaks between your subdomains

> The app is on one subdomain, the API on another, and cookies or requests get blocked.

Web page: https://buildladder.com/resources/prompts/subdomains

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

## Prompt to copy

```text
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.
```
