<@U04UQ68083H> does order of cookies sending to Kr...
# ory-copilot
w
@chilly-king-10285 does order of cookies sending to Kratos apis matter ? because when I send the cookies in this order
csrfToken=uYyCD7+eQ+AWeU/qblO3Kd/M7/gzFXHprAjeTmwiFJ/H+Nac19NQ+hEi5NevsHbm0yMCkVDXfWek5CpJn21J5g==; Path=/, csrf_token_806060ca5bf70dff3caa0e5c860002aade9d470a5a4dce73bcfa7ba10778f481=fnRUk2hNExoHW6s9wePBzwzv7WljwgyOCOz0B/NPXXk=; Path=/
it works now this one don't work why is that?
csrf_token_806060ca5bf70dff3caa0e5c860002aade9d470a5a4dce73bcfa7ba10778f481=fnRUk2hNExoHW6s9wePBzwzv7WljwgyOCOz0B/NPXXk=; Path=/,
csrfToken=uYyCD7+eQ+AWeU/qblO3Kd/M7/gzFXHprAjeTmwiFJ/H+Nac19NQ+hEi5NevsHbm0yMCkVDXfWek5CpJn21J5g==; Path=/
c
A message from kapa.ai
A message from kapa.ai
The order of cookies when sending to Kratos APIs does not matter. According to the [Kratos API Reference](https://www.ory.sh/docs/kratos/reference/api), it is okay if more than one cookie is included in the request as all other cookies will be ignored. The important part is that the session cookie (
ory_kratos_session
) is included in the request. If you're experiencing issues, it might be due to other factors such as the cookie values being incorrect or expired, or issues with the domain or subdomain setup. For example, cookies work best on the same domain and it's not possible to get cookies running across Top Level Domains (TLDs). Make sure that your application and Ory Kratos Public API are available on the same domain. If they are on separate subdomains, you need to set the domain name in the Kratos config file under
session.cookie.domain
as mentioned in the [Kratos CSRF troubleshooting guide](https://www.ory.sh/docs/kratos/debug/csrf#running-on-separate-subdomains). If you're still having issues, you might want to check out the [CSRF troubleshooting guide](https://www.ory.sh/docs/troubleshooting/csrf#further-reading) for more information.
The order of cookies when sending to Kratos APIs does not matter. According to the [Kratos API Reference](https://www.ory.sh/docs/kratos/reference/api), it is okay if more than one cookie is included in the request as all other cookies will be ignored. The important part is that the session cookie (
ory_kratos_session
) is included in the request. If you are experiencing issues, it might be due to other factors such as the cookie values being incorrect or expired, or issues with the domain or subdomain setup as mentioned in the [CSRF troubleshooting guide](https://www.ory.sh/docs/kratos/debug/csrf#running-on-separate-subdomains). Please ensure that your application and Ory Kratos Public API are available on the same domain, and that the domain name is correctly set in the Kratos config file under
session.cookie.domain
.