we are trying to add custom domains for ory-cloud ...
# ory-network
l
we are trying to add custom domains for ory-cloud configuration. but it still gives CORS error. also url is already activate still same error. our proxy url is http://cancoms-local.com/. can you please give us any suggestions to fix this issue ?
@early-island-50001
h
I will try to take a look on monday. Can you please share the cors error from the chrome console and network tab?
e
Error from Network tab
Error from Chrome console
@high-optician-2097 ^^
h
you need to call through your cname @early-island-50001
e
@high-optician-2097 from where we can get cname ?
h
your custom domain
e
Okay
h
e
Okay thanks
- account.hashapp.net/ is our cookie domain set in ory cloud. - cancoms-local.com is our app url, actually it's local server running on reverse proxy with nginx. - Once user logs in it's saving csrf_token and session as a cookie at account.hashapp.net but when we change cookie domain to our app cancoms-local.com, it's not saving anything to cookie. - Since cookie is not getting saved at our app domain, when i try to fetch session using toSession() method, it's throwing Unauthorized error because it cannot find csrf_token in cookie storage of our app.
Cookie should be saved here when we set cookie domain to cancoms-local.com but it's not getting saved.
but when we change cookie domain to account.hashapp.net, it's saving cookie to that domain.
how do we solve this problem? @high-optician-2097
l
@magnificent-energy-493 @high-optician-2097 help?
Heroku with a custom domain, need some help still w setup
h
Did you resolve it? We’re usually off on weekends 😉
e
@high-optician-2097 Not yet. can you please help ?
h
It’s quite difficult to debug this on Slack. Can you please create a github discussion with your current problem and all the required context over at github.com/ory/cloud ? thanks!
e
https://github.com/ory/cloud/discussions/110 @high-optician-2097 can you please check it ? i've posted it on github.
h
Can you please include the screenshots / details you shared above? Also make sure to use HTTPS when using CNAME
e
Okay
i have added the screenshots @high-optician-2097
i tried to use ory tunnel and it's working with normal sign in but not with social sign in, you know any solution?
this is the error i'm getting when trying social login
@high-optician-2097