Skip to content

Commit 4d113f1

Browse files
docs: keep Google sign-in on the canonical host
1 parent ec51b9e commit 4d113f1

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎docs/deployment.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,14 @@ The intended production setup serves the canonical HTTPS origin directly and red
100100
hosts to that origin while preserving paths. Compare the final served host with canonical tags,
101101
Open Graph URLs, robots and sitemap entries.
102102

103+
Configure this redirect before enabling Google sign-in. A login started on `www.procoderji.com`
104+
sets a host-only correlation cookie there; a callback to `procoderji.com` cannot receive that
105+
cookie. In the frontend Vercel project's Domains settings, redirect `www.procoderji.com` to
106+
`procoderji.com` with status `308`, preserving the path and query. Verify that even
107+
`https://www.procoderji.com/api/platform/auth/google` redirects to the canonical host before a
108+
correlation cookie is issued. Keep the Google callback and backend `PublicOrigin` on that same
109+
canonical origin. This changes hosting redirects, not DNS records.
110+
103111
Read-only checks:
104112

105113
```bash

0 commit comments

Comments
 (0)