I got error message in console from time to time.
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://localhost:44304') does not match the recipient window's origin ('https://localhost:4200').
Where:
https://localhost:44304 - identityServer address.
https://localhost:4200 - server address.
After some investigation i found out that this error may occur if you try to post mesage to iframe that is not loaded yet - stack link i found http://stackoverflow.com/a/22379990/1318210
I've manually delayed check session by putting breakpoint in identityServer code and i got same error so probably that's the case. I didn't find any code that waits for frame to be fully loaded so it could be easily fixed with delaying posting message to iframe till it fully loads. I'll create PR for it in a minute.
Thanks!
I'm still getting this error when using 1.5.2. It doesn't happen all the time, but this error gets logged to the console occasionally:
oidc-client.min.js Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://idsrv.domain.com') does not match the recipient window's origin ('http://localhost:5000').
Doesn't appear to cause any major issues though.
The same for me - occasional error without any noticeable side-effects. Just annoying to sometimes see this red message in the console and not being able to debug and fix it.
Most helpful comment
I'm still getting this error when using 1.5.2. It doesn't happen all the time, but this error gets logged to the console occasionally:
oidc-client.min.jsFailed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://idsrv.domain.com') does not match the recipient window's origin ('http://localhost:5000').Doesn't appear to cause any major issues though.