Skip to content

_webView2.CoreWebView2.WebResourceResponseReceived is not invoked #164

Open
@WenningQiu

Description

@WenningQiu

My application works fine on my laptop (Windows 10).

When the application runs on my dev VM (Windows Server 2016), the interaction with the Web server and rendering of web pages are all good, and the request and response messages exchanged with the Web server are captured by Fiddler; however, _webView2.CoreWebView2.WebResourceResponseReceived is not invoked.

The version of "Microsoft.Web.WebView2" package is "1.0.1418.22". The runtime version is the same on both machines:
image

        private void CoreWebView2Ready(object sender, EventArgs e)
        {
            _webView2.CoreWebView2.WebResourceRequested += WebResourceRequested;
            _webView2.CoreWebView2.WebResourceResponseReceived += ResponseReceived;
            _webView2.CoreWebView2.ClientCertificateRequested += ClientCertificateRequested;

            _webView2.CoreWebView2.Settings.AreHostObjectsAllowed = false;
            _webView2.CoreWebView2.Settings.IsWebMessageEnabled = false;
            _webView2.CoreWebView2.Settings.AreDefaultScriptDialogsEnabled = false;

            _webView2.Source = new Uri(SsoEndpointUrl);
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions