Just wondering how to intercept a particular security alert that could pop up in an AIR app, and replace it with my own that has safer options?
I have an AIR desktop app that connects to my site via URLRequest, and I have SSL set up on the site.
I want to intercept the current warning that comes up if I try an connect to a different site (in an effort to simulate a man-in-the-middle attack), and display my own error that does NOT give the user the option of continuing, but instead alerts them that something is wrong, there is a possible security breach, and that connection is not possible.
The current warning is:
This is also what would be presented if a man-in-the-middle attack is in progress. This is bad, as I don't want the user continuing at all if this is the case.
How do I intercept such a message - is there a specific HTTP event listener? If it's not possible, is there a different way to connect to my site that would avoid browser type pop ups like this?
Thanks for your help.
Europe, Middle East and Africa