Relative Content

Tag Archive for asp.net-mvciis

Issue with iframe Authentication in ASP.NET MVC across different origins

I have two ASP.NET MVC websites hosted on different IIS servers (not sharing the same origin). In the first website, I am using an iframe to embed the second website. When trying to log in to the second website (inside the iframe), I enter the user credentials, but upon successful login, it redirects back to the login page instead of the home page. I checked the cookies in the browser storage and found that they are not being created.