Recently my application using Keycloak stopped working with a 400 token request after authenticating.
What I found so far is that within the token request, the Keycloak
If you are facing this issue while using keycloak-js adapter.
Then the reason for this issue:
By default, the JavaScript adapter creates a hidden iframe that is used to detect if a Single-Sign Out has occurred. This does not require any network traffic, instead the status is retrieved by looking at a special status cookie.
Workaround (Not a fix):
This feature can be disabled by setting checkLoginIframe: false in the options passed to the init method.
eg.,
keycloak.init({ onLoad: 'login-required', checkLoginIframe: false })
For those who are looking for a short time solution until they update their libraries.
You can do the following in Chrome:-