miniature-london-86230
03/09/2022, 10:04 PMset-cookie: ory_session_<project>=... Path=/; Domain=<project>.<http://projects.oryapis.com|projects.oryapis.com>; Expires=Thu, 10 Mar 2022 21:56:06 GMT; Max-Age=86400; HttpOnly; Secure; SameSite=Lax
However the cookie is not found in the cookies of the request by the time it hits my callback. I think the library is filtering those cookies because the domain value does not match my application. Is this something I can setup in Ory Cloud for my project?miniature-london-86230
03/09/2022, 10:26 PMminiature-london-86230
03/09/2022, 10:27 PMminiature-london-86230
03/09/2022, 10:32 PM--cookie-domain
to my localhost gave me hope but the response cookie domain is still set to my ory project URLhigh-optician-2097
proud-plumber-24205
03/10/2022, 8:28 AMminiature-london-86230
03/10/2022, 1:43 PMminiature-london-86230
03/11/2022, 9:24 PM/yourpath
it actually sets the Location header to /config-url/.ory/yourpath
When I finally have cookies as expected, I run:
session, res, err := a.ory.oryhttpc.V0alpha2Api.ToSession(r.Context()).Cookie(cookies).Execute()
Which results in this error
"error":"Get \"<http://127.0.0.1:4000/.ory/api/kratos/public/sessions/whoami>\": dial tcp 127.0.0.1:4000: connect: connection refused"
What is incredibly strange is when I copy and paste this URL into a browser I get back the response I need!
Note for all requests I am runnng incognito.high-optician-2097
proud-plumber-24205
03/14/2022, 10:30 AM<http://oryapis.com|oryapis.com>
or ory.sh
domain (the proxy is tricking the browser by making requests on behalf of your browser to the Ory domains). The proxy also operates on a prefix .ory/
to distinguish your api paths from ory's since now everything is running through the proxy.
As for the error above, I couldn't reproduce it. The only thing I can think of is that the proxy is setup incorrectly. Which version of the proxy are you running? Maybe there is a bug somewhere.
➜ ~ ory version
Version: v0.1.24
Git Hash: 8f8ddeceb9c418de77b15fd2e49b16cf5a3f9196
Build Time: 2022-02-23T09:51:12Z