René's URL Explorer Experiment


Title: RequestHandler to set Proxy Auth not working · Issue #29 · cefsharp/CefSharp.OutOfProcess · GitHub

Open Graph Title: RequestHandler to set Proxy Auth not working · Issue #29 · cefsharp/CefSharp.OutOfProcess

X Title: RequestHandler to set Proxy Auth not working · Issue #29 · cefsharp/CefSharp.OutOfProcess

Description: for the classes: public class CustomRequestContext : RequestContextHandler { public WebProxy CurrentProxy { get; set; } public bool blockWebRTC { get; set; } = true; public CustomRequestContext(bool blockRTC) : base() { blockWebRTC = blo...

Open Graph Description: for the classes: public class CustomRequestContext : RequestContextHandler { public WebProxy CurrentProxy { get; set; } public bool blockWebRTC { get; set; } = true; public CustomRequestContext(boo...

X Description: for the classes: public class CustomRequestContext : RequestContextHandler { public WebProxy CurrentProxy { get; set; } public bool blockWebRTC { get; set; } = true; public CustomRequestContext(boo...

Opengraph URL: https://github.com/cefsharp/CefSharp.OutOfProcess/issues/29

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"RequestHandler to set Proxy Auth not working","articleBody":"for the classes:\n```\npublic class CustomRequestContext : RequestContextHandler\n{\n\n    public WebProxy CurrentProxy { get; set; }\n    public bool blockWebRTC { get; set; } = true;\n    public CustomRequestContext(bool blockRTC) : base()\n    {\n        blockWebRTC = blockRTC;\n\n     \n    }\n    protected override async void OnRequestContextInitialized(IRequestContext requestContext)\n    {\n        requestContext.SetPreference(\"credentials_enable_service\", true, out _);\n        if (CurrentProxy != null)\n        {\n            requestContext.SetPreference(\"webrtc.multiple_routes_enabled\", false, out _);\n            requestContext.SetPreference(\"webrtc.nonproxied_udp_enabled\", false, out _);\n            if (blockWebRTC)\n                requestContext.SetPreference(\"webrtc.ip_handling_policy\", \"disable_non_proxied_udp\", out _);\n\n            requestContext.SetProxy(CurrentProxy.Address.Scheme, CurrentProxy.Address.Host, CurrentProxy.Address.Port, out string error);\n            requestContext.SetPreference(\"intl.accept_languages\", \"en-US,en;q=0.9,en\", out string error2);\n        }\n    }\n\n    protected override IResourceRequestHandler GetResourceRequestHandler(IBrowser browser, IFrame frame, IRequest request, bool isNavigation, bool isDownload, string requestInitiator, ref bool disableDefaultHandling)\n    {\n        return base.GetResourceRequestHandler(browser, frame, request, isNavigation, isDownload, requestInitiator, ref disableDefaultHandling);\n    }\n\n\n}\n\npublic class ProxyAuthRequestHandler : CefSharp.Handler.RequestHandler\n{\n    public NetworkCredential Credentials { get; set; }\n    protected override bool GetAuthCredentials(IWebBrowser chromiumWebBrowser, IBrowser browser, string originUrl, bool isProxy, string host, int port, string realm, string scheme, IAuthCallback callback)\n    {\n        File.WriteAllText(@$\"D:\\html\\{DateTime.Now.Ticks}.json\", $@\"{new { originUrl , isProxy , host , port, realm , scheme }}\");\n\n        if (Credentials != null && isProxy == true)\n        {\n            callback.Continue(Credentials.UserName, Credentials.Password);\n            return true;\n        }\n        return false;\n    }\n}\n```\n\nand calling in file ` BrowserProcessHandler.cs.cs` in the method `CreateBrowser`\n\n```\n        Task IOutOfProcessClientRpc.CreateBrowser(IntPtr parentHwnd, string url, int id)\n        {\n            //Debugger.Break();\n\n            return CefThread.ExecuteOnUiThread(() =>\n            {\n                var requestContextSettings = new RequestContext(new CustomRequestContext( false) { CurrentProxy = this.Proxy });\n                var browser = new OutOfProcessChromiumWebBrowser(_outOfProcessServer, id, url, requestContextSettings);\n                browser.RequestHandler = new ProxyAuthRequestHandler() { Credentials = (NetworkCredential)Proxy.Credentials };\n                var windowInfo = new WindowInfo();\n                windowInfo.WindowName = \"BrowserProcess\";\n                windowInfo.SetAsChild(parentHwnd);\n                //Disable Window activation by default\n                //https://bitbucket.org/chromiumembedded/cef/issues/1856/branch-2526-cef-activates-browser-window\n                windowInfo.ExStyle |= OutOfProcessChromiumWebBrowser.WS_EX_NOACTIVATE;\n                browser.CreateBrowser(windowInfo);\n                _browsers.TryAdd(id, browser);\n\n                return true;\n            });\n        }\n\n```\nCustomRequestContext is set and the proxy  is done but it promps as is show in the image for a proxy credentials the GetAuthCredentials method is never called. on non auth proxies it works all fine cause CustomRequestContext sets correctly the proxy.\n\u003cimg width=\"576\" height=\"374\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/83a6e08c-1268-4bea-99fe-fd6c4792dba0\" />\n\nprobably I'm missing something on my understanding of the project but I'm unable to make the Request Handler to work.","author":{"url":"https://github.com/SorceryAdmin","@type":"Person","name":"SorceryAdmin"},"datePublished":"2025-10-21T19:34:37Z","url":"https://github.com/cefsharp/CefSharp.OutOfProcess/issues/29"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:aa3ffbe2-b2c7-761b-6561-ce6eeb199c34
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9BB0:F4E6A:1594BA7:1CEE19C:6AFEBCBD
html-safe-nonce7df9eec33040018b968186ef8a50980f4adfda7ec76c95b9bf718a3b2808365a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QkIwOkY0RTZBOjE1OTRCQTc6MUNFRTE5Qzo2QUZFQkNCRCIsInZpc2l0b3JfaWQiOiI2MjIzNzUxNDUxNjAwOTI3OTMzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac53140427222011480277a9a775aa1b463d3f48909e0bf1b993c356ef9fb6518e
hovercard-subject-tagissue:3537924733
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cefsharp/CefSharp.OutOfProcess/29/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a9fc7a0f73724f1a7bce8a66d04523f353eea94fd4221954b992405b48e7acfe/cefsharp/CefSharp.OutOfProcess/issues/29
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a9fc7a0f73724f1a7bce8a66d04523f353eea94fd4221954b992405b48e7acfe/cefsharp/CefSharp.OutOfProcess/issues/29
og:image:altfor the classes: public class CustomRequestContext : RequestContextHandler { public WebProxy CurrentProxy { get; set; } public bool blockWebRTC { get; set; } = true; public CustomRequestContext(boo...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameSorceryAdmin
hostnamegithub.com
expected-hostnamegithub.com
None95b2753c978240785d6cca00783c00a371b2d7d9879bb32e305170a1b19bd28e
turbo-cache-controlno-preview
go-importgithub.com/cefsharp/CefSharp.OutOfProcess git https://github.com/cefsharp/CefSharp.OutOfProcess.git
octolytics-dimension-user_id5076038
octolytics-dimension-user_logincefsharp
octolytics-dimension-repository_id500235408
octolytics-dimension-repository_nwocefsharp/CefSharp.OutOfProcess
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id500235408
octolytics-dimension-repository_network_root_nwocefsharp/CefSharp.OutOfProcess
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee1ce4c46d35aa8463a597a1bbffd4f0a456edb38
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/cefsharp/CefSharp.OutOfProcess/issues/29#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcefsharp%2FCefSharp.OutOfProcess%2Fissues%2F29
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcefsharp%2FCefSharp.OutOfProcess%2Fissues%2F29
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=cefsharp%2FCefSharp.OutOfProcess
Reloadhttps://github.com/cefsharp/CefSharp.OutOfProcess/issues/29
Reloadhttps://github.com/cefsharp/CefSharp.OutOfProcess/issues/29
Reloadhttps://github.com/cefsharp/CefSharp.OutOfProcess/issues/29
cefsharphttps://github.com/cefsharp
CefSharp.OutOfProcesshttps://github.com/cefsharp/CefSharp.OutOfProcess
Codehttps://github.com/cefsharp/CefSharp.OutOfProcess
Issues4 (4)https://github.com/cefsharp/CefSharp.OutOfProcess/issues
Pull requests7 (7)https://github.com/cefsharp/CefSharp.OutOfProcess/pulls
Discussionshttps://github.com/cefsharp/CefSharp.OutOfProcess/discussions
Actionshttps://github.com/cefsharp/CefSharp.OutOfProcess/actions
Security and qualityhttps://github.com/cefsharp/CefSharp.OutOfProcess/security
Insightshttps://github.com/cefsharp/CefSharp.OutOfProcess/insights
https://github.com/cefsharp/CefSharp.OutOfProcess
New issuehttps://github.com/login?return_to=https://github.com/cefsharp/CefSharp.OutOfProcess/issues/29
New issuehttps://github.com/login?return_to=https://github.com/cefsharp/CefSharp.OutOfProcess/issues/29
RequestHandler to set Proxy Auth not workinghttps://github.com/cefsharp/CefSharp.OutOfProcess/issues/29#top
https://github.com/SorceryAdmin
SorceryAdminhttps://github.com/SorceryAdmin
on Oct 21, 2025https://github.com/cefsharp/CefSharp.OutOfProcess/issues/29#issue-3537924733
https://private-user-images.githubusercontent.com/9088068/503847652-83a6e08c-1268-4bea-99fe-fd6c4792dba0.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUwNzk2NTcsIm5iZiI6MTc5NTA3OTM1NywicGF0aCI6Ii85MDg4MDY4LzUwMzg0NzY1Mi04M2E2ZTA4Yy0xMjY4LTRiZWEtOTlmZS1mZDZjNDc5MmRiYTAucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MTExOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjExMTlUMDkwOTE3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YjdmYTE2NzZmZmFkMmZlNDBmNTlmMTAzMjc1NzdhNzZhMmMxYTE5ZDgzMDcwNjUzZGVjZDA2NWIwZWVkZjFjNiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.fMmd6hVQHkLDBcyxhuPy3JewMdFNjaqtd_wNqgl3cxU
https://github.com/amaitland
amaitlandhttps://github.com/amaitland
on Oct 22, 2025https://github.com/cefsharp/CefSharp.OutOfProcess/issues/29#issuecomment-3434182205
https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.debugger.launch?view=net-9.0https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.debugger.launch?view=net-9.0
https://github.com/cefsharp/CefSharp.MinimalExamplehttps://github.com/cefsharp/CefSharp.MinimalExample
https://github.com/SorceryAdmin
SorceryAdminhttps://github.com/SorceryAdmin
on Oct 29, 2025https://github.com/cefsharp/CefSharp.OutOfProcess/issues/29#issuecomment-3462661912
https://github.com/amaitland
amaitlandhttps://github.com/amaitland
on Oct 30, 2025https://github.com/cefsharp/CefSharp.OutOfProcess/issues/29#issuecomment-3466877716
f3e2571https://github.com/cefsharp/CefSharp.OutOfProcess/commit/f3e2571263ef44592fc0bc2b28ef61accf169022
Sign up for freehttps://github.com/signup?return_to=https://github.com/cefsharp/CefSharp.OutOfProcess/issues/29
Sign in to commenthttps://github.com/login?return_to=https://github.com/cefsharp/CefSharp.OutOfProcess/issues/29
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.