Replies: 2 comments
-
Thanks for reaching out. I've assigned this to a dev that can help follow up on this. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Ok I figured it out. Apparently the "ReasonPhrase" parameter must be "Ok" in this case in order to work. The corrected line below:
Not sure why edge doesn't register the request at all if this isn't set correctly. Can I suggest that there be some logging somewhere or an error thrown when there is a failure of this type? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to intercept certain requests in WebView2, and set their responses directly in the event handler. I've got the WebView2 successfully calling the callback for the URIs I'm interested in. Then I set up this event handler for WebResourceRequested:
ms
is just anew MemoryStream
declared at the class level. I know this is bad practice but I was concerned that maybe the stream was being disposed before CoreWebView actually streamed through the content, so I thought this might help with debugging for now.I expected this to show "Hello World" in the webview however instead I get a plain white background with no text. Opening the dev tools and hitting Ctrl+R shows no request in the network tab.
This code does execute and the intellisense on
e.Response
includes this bit, which feels to me like this should work:What am I missing here?
Beta Was this translation helpful? Give feedback.
All reactions