Chromium.LoadRequest and Request.SetReferrer
Posted: Wed Dec 11, 2019 9:04 am
Hi, there was a problem with requests in cef 78. In the BeforeResourceLoad event when setting the referrer with request.setreferrer on the loaded page, java does not see this referrer. It is visible in the request header, but the document.referer script produces an empty string. If you load the request using Cromium.LoadRequest, the referrer is visible both in the header and the Java script, but the problem is different here, LoadRequest does not work if the page was not loaded into the browser using LoadURL before. Even if the page was loaded and it made several transitions after returning (GoBack) LoadRequest also does not work, it does not load the page, just a white screen and debugger gives the error "Terminating renderer for bad IPC message".
How to set the referrer correctly so that it can be seen by the Java script or how to use Cromium.LoadRequest without fear that the call to this procedure will be after GoBack, LoadURL ('about: blank') (in this situation, LoadRequest also does not work) or after LoadString ?
How to set the referrer correctly so that it can be seen by the Java script or how to use Cromium.LoadRequest without fear that the call to this procedure will be after GoBack, LoadURL ('about: blank') (in this situation, LoadRequest also does not work) or after LoadString ?