Why OKTA SSO Embedded Signin Widget behaved different on localhost and Server

Hi Team,

I have a OKTA SSO Embedded Signin widget that is redirecting to RedirectURI correctly however, after deploying same code to server, SignIn widget attached interactioncode and state to the Url as query string and stopped on that page with an error instead to redirecting to another controller action.

Screenshot below is for your reference