I am trying to get the nodeJS keycloak adapter working with my Express application, but am facing a CORS issue when it tries to redirect to the login page for routes I have
I had the exact same problem. I am using Keycloak 6.0.1
In my case, I had to add "enable-cors": true in keycloak.json in my Java backend server.
"enable-cors": true
keycloak.json
Afterward, I had another issue: 401 UNAUTHORIZED. This post solved the problem
401 UNAUTHORIZED