https://www.ory.sh/ logo
#talk-kratos
Title
# talk-kratos
f

flat-lawyer-3782

04/28/2022, 2:21 AM
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

damp-sunset-69236

04/28/2022, 9:53 AM
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

flat-lawyer-3782

04/28/2022, 10:09 AM
@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

damp-sunset-69236

04/28/2022, 10:42 AM
Could you try
Copy code
cookies.domain = <http://xyz.co.in|xyz.co.in>
?
f

flat-lawyer-3782

04/28/2022, 2:48 PM
@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=
2 Views