WebView2Samples | Microsoft Edge WebView2 samples | Android library
kandi X-RAY | WebView2Samples Summary
kandi X-RAY | WebView2Samples Summary
Microsoft Edge WebView2 samples
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of WebView2Samples
WebView2Samples Key Features
WebView2Samples Examples and Code Snippets
Community Discussions
Trending Discussions on WebView2Samples
QUESTION
After installing the WebView2 components for UWP and creating a project using these instructions, the web view cannot load a local IP Source="http://10.20.30.59/"
.
- The same URL works in WPF WebView, however I need to migrate because of other issues.
- The same URL works in other browsers, just not in WebView2. "Normal" URLs like https://bing.com work fine in the WebView2.
- Turning the firewall off still doesn't allow the content to load.
- Turning off the Windows antivirus under Virus & threat protection settings does not help.
- The
CoreWebView2NavigationCompletedEventArgs.IsSuccess
value isfalse
andWebErrorStatus
isConnectionAborted
. - Under DevTools > Network > Headers, the failed page has the value Referrer Policy: strict-origin-when-cross-origin. A visit to https://developer.chrome.com/blog/referrer-policy-new-chrome-default/ shows that this can be modified with Chrome flags, but I don't know how to run those flags to verify this is not the problem.
- The feedback area has some similar issues like https://github.com/MicrosoftEdge/WebView2Feedback/issues/2145, but not one that shows how to debug it.
- In the Package.appxmanifest, adding Internet (Client & Server), Internet (Client), Private Networks (Client & Server), and Remote System capabilities does not help.
- Using Node JS + Node Package Manager to run a local server works on
Source="http://10.20.30.106:8080/"
. This leads me to believe the problem is with the source itself. https://devpractical.com/host-a-html-page-on-localhost/#nodejs-section - The UWP sample WebView2Samples-master\SampleApps\webview2_sample_uwp from https://github.com/MicrosoftEdge/WebView2Samples works fine using the problematic address. Why?
Below is the minimal reproducible example from the instructions:
...ANSWER
Answered 2022-Mar-18 at 14:37By comparing to the Microsoft sample, I found the missing capability, called Private Networks (Client & Server) in Package.appxmanifest. This is the only requirement for my project.
For whatever reason, when getting back to the project, this capability had gotten unchecked, so maybe restart Visual Studio or otherwise ensure that this capability has really been registered.
QUESTION
I am using Visual Studio 2015, version 14.0.23107.0. Project’s target platform is 10.0.17763.0.
I have read this article, and did first steps. I downloaded webview2 solution from GitHub and opened it in Visual Studio. Then, via git NuGet I successfully added Windows Implementation Library package (version 1.0.200902.2), and WebView2 package (version 0.9.579).
Then, in HelloWebView.cpp
I added
ANSWER
Answered 2020-Sep-09 at 14:07Seems hard nights do their work.
I included only WRL
:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install WebView2Samples
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page