locked
[U8.1]WebView does not redirect when Private Networks capability is enabled RRS feed

  • Question

  • Hi all,

    I have a WebView control which is given an URL to navigate to like 'http://www.X.com/?redirect=https://www.Y.com/' (www.X.com is remote server). The WebView control then receives redirection URL 'https://www.Y.com/' (verified using Fiddler, got 302) whose server is in the intranet (private network) to the app.

    I need the 'Private Networks (Client & Server)' capability enabled for other purpose. When I enable this capability in the app manifest, the webview fails (IsSuccess in NavigationCompleted event is false) to redirect to 'https://www.Y.com/' with WebErrorStatus set as Unknown.

    What policies govern this behavior and how can this be corrected?

    Thanks,

    JoeB


    Wednesday, June 3, 2015 2:36 AM

Answers

  • "According to your description, does it mean WebView works if you remove privatenetworkclientserver capability?"

    Yes you understood me correctly.

    "Have you tried access https://www.y.com directly with privatenetworksclientserver capability? Can it work?"

    Yes and it works with just https://www.y.com/ .

    Right now my solution is to trap the redirection error when WebErrorStatus is Unknown and manually redirect the control to https://www.y.com/ . This works.

    Friday, June 12, 2015 7:24 AM

All replies

  • Wednesday, June 3, 2015 9:37 PM
  • Hi Joeb,

    According to your description, does it mean WebView works if you remove privatenetworkclientserver capability? If I misunderstand, please correct me. On windows phone, this privatenetworkclientserver capability provides the same access as internetclient or internetclientserver. It is documented on App capability declarations’s General-use capabilities section.

    Have you tried access https://www.y.com directly with privatenetworksclientserver capability? Can it work?

    Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    Friday, June 12, 2015 7:17 AM
  • "According to your description, does it mean WebView works if you remove privatenetworkclientserver capability?"

    Yes you understood me correctly.

    "Have you tried access https://www.y.com directly with privatenetworksclientserver capability? Can it work?"

    Yes and it works with just https://www.y.com/ .

    Right now my solution is to trap the redirection error when WebErrorStatus is Unknown and manually redirect the control to https://www.y.com/ . This works.

    Friday, June 12, 2015 7:24 AM