I'm getting a cors issue using javascript SDK: `or...
# talk-kratos
f
I'm getting a cors issue using javascript SDK:
ory.adminListIdentities()
, and it looks like there isn't an option to set cors in the kratos.yml under
Copy code
serve:
  admin:
r
There’s no auth there
We are “exposing” it through oathkeeper
f
So I have to set up oauthkeeper to use admin in kratos?
b
The admin endpoints are not secured by kratos directly. We recommend using something like oathkeeper to secure access to it, as leaving it exposed on the web (or even just an intranet) can be very dangerous. Your specific case sounds like you’re trying to call the admin endpoint from a browser. While this can be set-up to work, this is not recommended, and will lead to errors such as yours. A better way is, to set up an “admin” application that talks to the endpoints from a server, where you can build your own frontend, scheduled jobs, etc.
f
This is super helpful and gets me unstuck. Thank you!