How do I setup CORS in the Cloud? I know there are...
# ory-network
j
How do I setup CORS in the Cloud? I know there are configuration options for when I'm self hosting, but otherwise I'm lost. I'm using the free plan for now. The blocked request was to the
whoami
endpoint. Just basic stuff.
r
On the custom domain page
j
There's only an "Upgrade Now" button there
s
from what page to you want to make the request? what is your setup?
j
Nextjs app behind AWS' load balancer, on a custom domain
s
but you don't have a CNAME set up through Ory?
That will not work with cookies unfortunately
you either have to deploy the ory proxy or set up a cname
j
So CNAME to this randomish DNS name generated by the cloud?
Copy code
<https://dazzling-shtern-uw97dfb4yg.projects.oryapis.com>
s
yeah basically, but you will have to upgrade to do that
it is important for cookies to be set on your domain, not the project slug doimain
j
So there's no way to test the cloud without upgrading?
s
you can test using the proxy
it proxies all requests and rewrites cookies/cors/...
j
Ok, I get it. Do you still have a promotional code,
FIRST900
is expired.
s
no, we unfortunately disabled that recently
I can issue one for you though
j
That'd be nice, thank you