how can I set up cors in Kratos on Ory Cloud? I tried using the cli but didn't work
p
proud-plumber-24205
09/08/2023, 6:08 AM
Hi @adventurous-addition-28416
If you are developing locally, then you should use the Ory CLI to create a tunnel which mirrors the Ory APIs on your localhost machine.
https://www.ory.sh/docs/guides/cli/proxy-and-tunnel
If you already deployed your application on a domain you own, then you need to setup a custom domain on your Ory project https://www.ory.sh/docs/guides/custom-domains
a
adventurous-addition-28416
09/08/2023, 12:35 PM
I already deployed, so I cant use Ory cloud for free?
Because to add a custom domain I need to upgrade my plan
p
proud-plumber-24205
09/08/2023, 1:10 PM
You can use it but requires more work then to implement. It means you need to deploy the Ory Tunnel alongside your application due to CORS and cookie limitations on cross domain requests.