How to Fix Keycloak Cors Policy Error: No Access-control-allow-origin Header
1. Setup Keycloak is running on Server A. A client or backend application is running on Server B. Or both Keycloak and the client or...

1. Setup
- Keycloak is running on Server A.
- A client or backend application is running on Server B.
- Or both Keycloak and the client or backend application are running on the same server
2. Problem
3. Solution
- Open your Keycloak client.
- Under the Settings tab (selected by default), scroll at the bottom part.
- Look for Web Origins and set it to "*" while testing.
- Valid Redirect URIs can be set to "*" too.
- http://localhost:4200/*
- http://localhost:4200
- Could be *
- Or, any URL where you will redirect Keycloak after login
Post a Comment