What causes invalid parameter: redirect_uri error?

I have working version of basic keycloak integration with Angular locally, where I have configured keycloak server and admin console, and so when I access localhost:4200 its successfully redirecting keycloak login page, generating tokens, adding token to auth header in account endpoint automatically when I checked the Network tab in dev tools of browser, but when deployed on sandbox with modified config params with actual application’s keycloak settings , its showing the invalid parameter: redirect_uri. What exactly produces this error?