Angular login request stays pending when authenticating using token (ASP.NET Core Identity + cookies + CORS)

I am using virto signInAsync function after validating ad i am facing the problem below can somebody help?

During debugging, the API request functions correctly. However, when executed in the browser, the request remains in a pending state. The issue appears only when navigating from y.com to x.com—in that scenario, the request does not complete and stays pending.

Interestingly, the reverse navigation (from x .com to y .com) works as expected. The problem seems to occur after signing out from x .com and then logging back in, followed by navigating from y .com back to x .com. This behavior suggests a potential conflict, possibly related to session handling, authentication tokens, or cross-domain policies.
Can somebody please help me with it.

Could you clarify what your solution configurations are and steps to reproduce?