Another one, shouldn't the `/oauth2/token` endpoin...
# ory-network
l
Another one, shouldn't the
/oauth2/token
endpoint allow the cors origins defined in the oauth client? or do we need to setup a custom domain for this to enable cors globally?
m
Hello @late-florist-28893 Yes the endpoint should allow the CORS origins defined in the Oauth2 client
These are the allowed Origins you can set on your custom domain. By default, we add your custom domain to the origin. You’ll likely want to add more origins to this list to allow requests to our API from a different origin.
Did you add a custom domain? Did you add another origin and you cant call the API from there?
l
Alright. I added a http domain to the allowed cors origins of my oauth2 client and the token endpoint failed with a cors error.
But i am able to initialize the flow from this host.