Is there a setting to add allowed origins or how w...
# ory-network
c
Is there a setting to add allowed origins or how would I get this to work?
Access to XMLHttpRequest at 'https://auth.example.com/sessions/whoami' from origin 'https://example.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
1
I think I see the problem... need to build an HttpRequest using withCredentials. https://www.ory.sh/docs/security-model is good.
I thought I had it but same problem: I've turned off Cloudflare caching and am making the request with dio exactly like the flutter tutorial, but CORS keeps blocking. According to https://www.ory.sh/docs/security-model#same-top-level-domain this should work.
I don't think there's anything sensitive in here so...
Embarrassed to say I never added my tld. Problem solved.
h
Nice 🙂