While running keycloak ui in development mode. i m gertting cors error
Access to fetch at ‘http://localhost:8180/admin/master/console/whoami?currentRealm=master’ from origin ‘http://localhost:8080’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.
http://localhost:8180/admin/master/console/whoami?currentRealm=master net::ERR_FAILED 403 (Forbidden)
1 Like
This 24.0.4 version where i am trying to run admin-ui in keycloak. @dasniko
I’m also having trouble with the 24.x source. I was able to run this two days ago. Currently receiving CORS thingy,
@nayksridhara Were you able to resolve this error?
Is anyone else encountering this issue while running the admin UI in dev mode? I’ve tried changing the web origins but haven’t been able to resolve it. Am i missing anything here?
Nope @LogaMithran but if u found where api calls are happening just let me know, i couldn’t able to find the package or component where all network calling are happening in admin console.
Hi @nayksridhara
You can find it here, all the admin api calls are happening in here
js/apps/admin-ui/src/admin-client.ts
@maintainers Anything needs to be changes while running the backend kcl sever?. We manipulated the CORS by using proxy. But for dev mode that’s not really useful
@LogaMithran i am lokking for header configuration
@LogaMithran again check the error have been resolved it is working fine now.
Okay @nayksridhara, I will check that