You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 3, 2022. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
pawepaw
pushed a commit
to pawepaw/oidc-client-js
that referenced
this issue
Apr 1, 2017
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').
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.
I got error message in console from time to time.
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.
The text was updated successfully, but these errors were encountered: