Hello Guys i am facing issue here with ory kratos...
# talk-kratos
f
Hello Guys i am facing issue here with ory kratos session cookies , it is not being sent to my backend in development environment works fine in local because 127.0.0.1 and diffrent ports frontend url : https://glance.xyz.co.in backend url : https://api.glance.xyz.co.in ory public url : https://glance.xyz.co.in/.ory/kratos/public can some guide me here
d
Hello. You can have this configuration for Ory Kratos
Copy code
session.cookie.domain = <http://glance.xyz.co.in|glance.xyz.co.in>
also, it would be great to have kratos running on kratos.glance.xyz.co.in or auth.glance… Usually that configuration works for every setup.
And yes. Configuring cookie guide can help you
f
@User as per reference article share , i have added session: cookie: domain: xyz.co.in in kratos.yml file still cookies have domain : https://glance.xyz.co.in and only works under domain : https://glance.xyz.co.in not even with https://api.glance.xyz.co.in
d
Could you try
Copy code
cookies.domain = <http://xyz.co.in|xyz.co.in>
?
f
@User i did
Copy code
cookies.domain = <http://xyz.co.in|xyz.co.in>
and got the following error (root) ^-- additionalProperties "cookies" not allowed time=2022-04-28T144125Z level=fatal msg=The services failed to start because the configuration is invalid. Check the output above for more details. func=github.com/ory/x/viperx.WatchAndValidateViper file=/go/pkg/mod/github.com/ory/x@v0.0.165/viperx/watch_and_validate_viper.go:22 audience=application service_name=kratos service_version= time=2022-04-28T144227Z level=info msg=Config file loaded successfully. func=github.com/ory/x/viperx.InitializeConfig file=/go/pkg/mod/github.com/ory/x@v0.0.165/viperx/viper.go:140 audience=application path=/etc/config/kratos/kratos.yml service_name=kratos service_version= time=2022-04-28T144227Z level=warning msg=