Answered by:
Detect iframe error APPHOST9613

Question
-
Hi,
Is there a way to detect iframe error APPHOST9613 FORBIDFRAMING?
"APPHOST9613: The app couldn’t navigate to http://www.facebook.com/worldmarket/posts/10151120077917735 because of this error: FORBIDFRAMING."
I can see the error in javascript console. We would like to capture it programmatically and send the user to a browser when the error occurred. But
Ideally, we want something like the WebView in C#, so that we can simply display any web page. Currently, iframe does not show web pages that has x-frame-options, but WebView can. I am really hoping a fix will come soon.
In the meantime, I am thinking about detecting this error and send them to an external browser if the page cannot be displayed in iframe.
Tuesday, December 18, 2012 6:27 AM
Answers
-
Hi,
I have confirmed that you can't intend to make that as webview in C# app. And there is no way to trap the error however it is a header so if you can test for that header you will be able to detect this:
Roy
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.- Marked as answer by Song Tian Monday, December 31, 2012 6:00 AM
Friday, December 28, 2012 8:22 AM
All replies
-
Hi,
These sites have set the X-Frame-Options header. More details, please refer to:http://blogs.msdn.com/b/ieinternals/archive/2010/03/30/combating-clickjacking-with-x-frame-options.aspx
Roy
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.Tuesday, December 18, 2012 8:27 AM -
Thanks for the reply, I know that already. I am looking for alternative way to deal with it such as detecting error APPHOST9613 and open an external browser.
Also, C# apps has the capability to embed those sites with WebView and HTML5/Javascript app do not have the capability is really troublesome. Could you please reflect this to Microsoft that this is this major capability difference between C# and HTML5/Javascript.
Tuesday, December 18, 2012 7:04 PM -
Hi,
I will involve more experts to investigate it. Any update will let you know.
Roy
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.Wednesday, December 19, 2012 2:35 AM -
Thank you very much, Roy.Wednesday, December 19, 2012 7:02 PM
-
Hi,
I have confirmed that you can't intend to make that as webview in C# app. And there is no way to trap the error however it is a header so if you can test for that header you will be able to detect this:
Roy
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.- Marked as answer by Song Tian Monday, December 31, 2012 6:00 AM
Friday, December 28, 2012 8:22 AM