Q: what's the purpose of setting the kratos cookie...
# talk-kratos
a
Q: what's the purpose of setting the kratos cookie domain to something broader than the domain that kratos itself is running on? Don't those cookies only need to go to kratos? Other services never need to read them, correct?
I'm mainly talking about the advice on this page: https://www.ory.sh/docs/kratos/guides/multi-domain-cookies When would someone need it?
I'm guessing one reason might be so oathkeeper can access the cookie on different subdomains?
w
So other services like a backend will be sent the cookie so they can introspect/authenticate the user
by setting the domain broader all subdomains will be sent the cookie allowing services on these domain to auth the user