Hi, is it possible to run Ory Kratos on a Server t...
# ory-selfhosting
c
Hi, is it possible to run Ory Kratos on a Server to use it for local testing or will there be issues because of "Set Cookie" from another domain ? For example: Kratos runs on server example.com and I want to get csrf and session cookies on my locally hosted instance of my applicatiion, ergo localhost
n
no, the domains (or at least some higher level piece of the domains) must match for kratos to work. my company solved problems like this (had prior to working with kratos, but conveniently also solves this problem) by registering a real DNS wildcard record under a domain we own to point to 127.0.0.1, so we can have everything under
*.<http://example.com|example.com>
point to our local machines
or this may be enough for your setup - https://www.ory.sh/docs/guides/cli/proxy-and-tunnel
c
Hey Andrew, thanks for the answers! I think your second suggestion will work for us 👍