Skip to content

Subdomains and Cookies #1193

Discussion options

You must be logged in to vote

Took a minute but here's what I did to reproduce.

  1. Cloned and installed the Payload Next Auth repo: payload-cms-next. Locally, I'm using Traefik, dnsmasq, for the certificate and resolution. Configured this to run and resolve on payload.cookie.domain.com.

  2. Cloned and installed the Next Auth Frontend repo: next-auth-frontend. Again, locally using Traefik and dnsmasq for valid certs and resolution. Configured this to run and resolve on cookie.domain.com. Set the NEXT_PUBLIC_CMS_URL env. var. to point to payload.cookie.domain.com.

Then I tried a few different approaches.

  1. Did not modify the Users collection to observe the initial behavior:
  • Logging into payload at directly at payload.co…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@imphillipzissou
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by imphillipzissou
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants