on-internet
← Community

Edit HTTP Request header with WebView2

Stack Overflow ·

I am using the new WebView2 control that has recently been released for .NET and I need to add an authorization value to the request header when navigating to a site but am unable to find a way to do it. Since this is control is relatively new and my first time using it, I could also be completely missing the method that actually does this. The only information I can find so far is found in the c++ documentation: ICoreWebView2HttpRequestHeaders It specifically says Used to inspect the HTTP request on WebResourceRequested event and NavigationStarting event. Note, you can modify the HTTP request

Comments

Sign in or sign up to comment and upvote.

No comments yet.