cef143 LoadRequest not working

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Re: cef143 LoadRequest not working

Postby magreenblatt » Thu Jan 08, 2026 8:31 pm

The renderer process is not created (or origin assigned for security checks) until browser-side navigation occurs as a result of LoadURL, etc. LoadRequest is then executed in that properly-configured renderer process.
magreenblatt
Site Admin
 
Posts: 13215
Joined: Fri May 29, 2009 6:57 pm

Re: cef143 LoadRequest not working

Postby Gionter » Fri Jan 09, 2026 9:12 am

magreenblatt wrote:The renderer process is not created (or origin assigned for security checks) until browser-side navigation occurs as a result of LoadURL, etc. LoadRequest is then executed in that properly-configured renderer process.


Why doesn't this security apply to subdomains if I've already loaded the main domain using LoadUrl?
Gionter
Techie
 
Posts: 15
Joined: Mon Oct 14, 2024 6:36 pm

Re: cef143 LoadRequest not working

Postby magreenblatt » Fri Jan 09, 2026 9:55 am

Subdomains are a different origin, by definition. If you’re saying that LoadRequest works for subdomains after LoadUrl of the main domain, then you’ve found another edge case that happens to work currently and is likely to break in the future.
magreenblatt
Site Admin
 
Posts: 13215
Joined: Fri May 29, 2009 6:57 pm

Re: cef143 LoadRequest not working

Postby amaitland » Thu Jan 29, 2026 3:39 pm

Using LoadUrl and modifying the request in OnBeforeResourceLoad is the method I've used in the past.

You can see a CefSharp specific example at https://github.com/cefsharp/CefSharp/wi ... h-postdata

The general concept applies to CEF though.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1351
Joined: Wed Jan 14, 2015 2:35 am

Previous

Return to Support Forum

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 53 guests