How to specify referrer URI when navigating to a page in UWP WebView in C# and VB

93

How to specify referrer URI when navigating to a page in UWP WebView in C# and VB -

Windows.Web.Http.HttpRequestMessage Request = new Windows.Web.Http.HttpRequestMessage();

Request.Headers.Referer = new Uri(RefererURI);

Request.RequestUri = new Uri(URIToNavigateTo);

webViewMain.NavigateWithHttpRequestMessage(Request);

How to specify referrer URI when navigating to a page in UWP WebView in C# and VB -

Dim Request = New Windows.Web.Http.HttpRequestMessage()

Request.Headers.Referer = New Uri(RefererURI)

Request.RequestUri = New Uri(URIToNavigateTo)

webViewMain.NavigateWithHttpRequestMessage(Request)

Comments

Submit
0 Comments