We have angular app and we use nginx in a docker image to deploy it.
I'm trying to pass the keycloak url to the js adapter by using a constant like this:
new Keycloak(url: '/idp');
and in nginx's config I try to proxy that constant to the passed args to the docker
image: location /idp {
proxy_pass ${IDP_PROTOCOL}://${IDP_ADDR}/${IDP_CONTEXT_PATH}; }
When the logic in checkLoginIframe tries to send cross-origin request it fails because
the adapter uses our app's origin.
Is there any way to be able to proxy that via nginx?
If I disable checkLoginIframe can the session be tracked when expired and etc?