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
I am trying to capture error status from a child page that I am loading from pym. When the child page detects invalid user, it will return status 401 on the header and I want to be able to get that status and redirect the user to the parent site's login page.
How can I get this status code from the child page?
Thanks,
Suriyanto
The text was updated successfully, but these errors were encountered:
If you are not hosting the child page yourself you cannot do this. By the security rules of the web browser, you cannot access the status of web pages loaded from other servers.
If you are hosting the page yourself then modify the child page to signal the parent page about its status via JavaScript.
Yep, what @miohtama. This isn't really an issue specific to pym, although you can look at how we do the cross-iframe messaging and use that logic to send your own communications. In this case status codes may be a bad way to communicate error states though.
Hello,
I am trying to capture error status from a child page that I am loading from pym. When the child page detects invalid user, it will return status 401 on the header and I want to be able to get that status and redirect the user to the parent site's login page.
How can I get this status code from the child page?
Thanks,
Suriyanto
The text was updated successfully, but these errors were encountered: