
2s1eh (2s1eh) asked a question.
Hello,
we are seeing issue with okta_post_message response mode . the URL works fine with query.
Below is the URL we are trying on browser and it get struck on the browser not going anywhere.
Below is the error showing in developer tool.
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://xyz.com') does not match the recipient window's origin https://abc.com
Did any one faced similar. Please let me know why it's not working with okta_post_message .

Hi @2s1eh (2s1eh),
Thank you for posting on the Okta community page!
I have done some research and managed to find that this error might be caused if the domain in the redirectUri does not match the domain hosting the sign in widget, as per the mention in the below article for the okta_post_message parameter, where it is stated that this value provides a secure way for a single-page application to perform a sign-in flow in a pop-up window or an iFrame and receive the ID token, access token, and/or authorization code back in the parent page without leaving the context of that page
Additionally, my advice would be to leverage the Okta Developer forums for this type of questions and take advantage of their expertise.
------------------------------------------------------------------------------------------------------------------------------------------------
The Okta Community November newsletter is here. Get product updates and see our top contributing members.
Hi Flaviu,
Thank you for your response.
We are using custom domain for our org. Both re-direct url and custom url are in same domain.
as suggested ,I have also posted issue in developer forum.
Thanks,
Uday