We have a mvc website embeded into an angular application using iframe. This used to work fine as both of these applications are hosted in same domain and works on cookie based authentication mechanism.
But we recently needed to change authentication mechanism to Open Id connect (using .net open source identity provider). Since this system expected to work authorization token to be placed in header, this iframe loading mechanism ia failing.
Any good suggestions on how to load this site into iframe but still pass auth header. And also once i frame gets loaded internally mvc website also needed to make some service calls which inturn needed to pass authorization header.
Please let me know if there is a better and cleaner approach for this problem.