I can successfully login with the standalone mvc app without the iframe
. But when I put the same app inside an iframe
, I'm getting the Exception: Correlation failed
exception.
When I tried with postman
, I'm getting the following response:
I have also tried with different SameSiteMode
configurations but to no avail. Is there any way or workaround to achieve this? Thanks.
I suspect the cookie is not sent by the browser.
You need to use HTTPS to get it to work together with samesite=none;Secure attributes added to the cookie. Otherwise the cookie will be blocked by the browser.
You can diagnose why a cookie was not accepted or used by going to the Chrome devtools and:
To complement this answer, I wrote a blog post that goes into more detail about this topic: Debugging cookie problems