Skip to content

Commit

Permalink
docs: add subdomain configuration in csrf page (#1896)
Browse files Browse the repository at this point in the history
Add some instructions as to how kratos can be configured to work across subdomains.
  • Loading branch information
yonbh authored Oct 29, 2021
1 parent 1e794fe commit 681750f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/docs/debug/csrf.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ do in the Quickstart guide.
We do not recommend running them on separate subdomains, e.g.
`https://kratos.my-website/` and `https://secureapp.my-website/`).

To allow cookies to work across subdomains, make sure to set the domain name
in the Kratos config file under [`session.cookie.domain`](https://www.ory.sh/kratos/docs/next/guides/configuring-cookies/#session-cookies).

Running the apps on different TLDs will not work at all, e.g. e.g.
`https://kratos-my-website/` and `https://secureapp-my-website/`.

Expand Down

0 comments on commit 681750f

Please sign in to comment.