Using Payment Window inside iframe
Due to the nature of our integration, we need to render Payment Window inside an iframe. This iframe renders the payment windows calling another application so the iframe and the content are in different domains.
This is problematic in PC as the redirection tries to change the parent location (parent of the content is the window where the iframe is rendered), but due to cross origin policy, Toss Payment Window cannot change the location of the parent.
We get "Failed to set the href property on Location: The current window does not have permission to navigate the target frame to {successUrl}.
Is it possible to detect when Toss Pay Payment window will perform a redirection so we can pass the redirection url to the parent iframe and the parent do the redirection?
Thanks.
This is problematic in PC as the redirection tries to change the parent location (parent of the content is the window where the iframe is rendered), but due to cross origin policy, Toss Payment Window cannot change the location of the parent.
We get "Failed to set the href property on Location: The current window does not have permission to navigate the target frame to {successUrl}.
Is it possible to detect when Toss Pay Payment window will perform a redirection so we can pass the redirection url to the parent iframe and the parent do the redirection?
Thanks.
