hundreds-air-34290
08/01/2023, 6:25 AMbillions-leather-15882
08/03/2023, 12:18 PMconst kratosConfig = new Configuration({
basePath: process.env.REACT_APP_KRATOS_PUBLIC_URL ?? '<http://auth.mydomain.tld/kratos>',
baseOptions: {
withCredentials: true
}
})
Using kratos v1.0.0billions-leather-15882
08/03/2023, 12:25 PMbillions-leather-15882
08/03/2023, 12:28 PMbillions-leather-15882
08/03/2023, 12:54 PMbillions-leather-15882
08/03/2023, 1:02 PMSet-Cookie: ory_kratos_session=MTY5MTA2N...; Path=/; Domain=mydomain.internal; Expires=Fri, 04 Aug 2023 13:00:26 GMT; Max-Age=86399; HttpOnly; SameSite=Lax
And when using the http://app.mydomain.internal the cookie is not sent to kratos, but if I am using http://auth.mydomain.internal it is sent
Kratos lives behind proxy in http://auth.mydomain.internal/kratos/ ...billions-leather-15882
08/03/2023, 1:14 PMhundreds-air-34290
08/04/2023, 6:30 AMSet-cookie: ory_kratos_session=MTY5MTEzMDU0N3...; Max-Age=86399; Path=/; Expires=Sat, 05 Aug 2023 06:29:06 GMT; HttpOnly; Secure; SameSite=Lax
hundreds-air-34290
08/04/2023, 6:31 AMhundreds-air-34290
08/04/2023, 6:33 AMkratos-kratos-1 | time=2023-08-04T06:29:07Z level=info msg=completed handling request func=<http://github.com/ory/x/reqlog.(*Middleware).ServeHTTP|github.com/ory/x/reqlog.(*Middleware).ServeHTTP> file=/go/pkg/mod/github.com/ory/x@v0.0.562/reqlog/middleware.go:146 http_request=map[headers:map[accept:application/json, text/plain, */* accept-encoding:gzip, deflate accept-language:en-US,en;q=0.5 connection:close content-type:application/json cookie:[csrf_token_3a88daad3c0e974b47be0ab7c2d6246393e9f967f9de769e75d37c032a3db269=fQyVyEjWEIt604FCkkVOK+W4Jdz4ekWg7vsfCKSPz4g=] ory-base-url-rewrite:false ory-no-custom-domain-redirect:true referer:<https://accounts.my-domain.com/login?flow=8b3ac117-ac77-408f-9f27-36a4051d32d4> user-agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0 x-forwarded-host:<http://accounts.my-domain.com|accounts.my-domain.com> x-ory-base-url-rewrite:false] host:kratos:4433 method:POST path:/self-service/login query:flow=8b3ac117-ac77-408f-9f27-36a4051d32d4 remote:... scheme:http] http_response=map[headers:map[cache-control:private, no-cache, no-store, must-revalidate content-type:application/json; charset=utf-8 set-cookie:[csrf_token_3a88daad3c0e974b47be0ab7c2d6246393e9f967f9de769e75d37c032a3db269=zvcVPB73v3dGvd1shV+zkWRY7pqOujSi3aimCOmSw1s=; Path=/; Domain=<http://my-domain.com|my-domain.com>; Max-Age=31536000; HttpOnly; Secure; SameSite=Lax ory_kratos_session=MTY5MTEz...; Path=/; Domain=<http://my-domain.com|my-domain.com>; Expires=Sat, 05 Aug 2023 06:29:06 GMT; Max-Age=86399; HttpOnly; Secure; SameSite=Lax] vary:Origin] size:1332 status:200 text_status:OK took:407.756774ms]'
hundreds-air-34290
08/04/2023, 6:36 AMhundreds-air-34290
08/04/2023, 6:37 AMbillions-leather-15882
08/04/2023, 6:38 AMbillions-leather-15882
08/04/2023, 6:43 AMhundreds-air-34290
08/04/2023, 9:40 AMhundreds-air-34290
08/04/2023, 9:40 AMhundreds-air-34290
08/04/2023, 9:41 AMhundreds-air-34290
08/04/2023, 9:41 AMbillions-leather-15882
08/04/2023, 10:59 AMhundreds-air-34290
08/04/2023, 11:00 AMbillions-leather-15882
08/04/2023, 11:01 AMbillions-leather-15882
08/04/2023, 11:02 AMhundreds-air-34290
08/04/2023, 11:03 AMbillions-leather-15882
08/04/2023, 11:05 AMbillions-leather-15882
08/04/2023, 11:08 AMbillions-leather-15882
08/04/2023, 11:08 AMbillions-leather-15882
08/04/2023, 11:08 AMbillions-leather-15882
08/04/2023, 11:19 AMbillions-leather-15882
08/04/2023, 11:20 AMbillions-leather-15882
08/04/2023, 11:20 AMbillions-leather-15882
08/04/2023, 11:53 AM