Closed Speed7811 closed 4 months ago
"OnCertificateError" should be fired when the javascript fetch will be executed.
OnCertificateError is only called for navigations.
In Google Chome I can make an certificate exception for the website and it works for the javascript.
The same settings are available in CEF Chrome runtime.
Describe the bug Event "OnCertificateError" is not fired on inner resources.
I used the Cefsharp browser and a developer said that he cannot fix it. It must be fixed in the lib directly.
To Reproduce Steps to reproduce the behavior:
Expected behavior "OnCertificateError" should be fired when the javascript fetch will be executed.
Versions (please complete the following information):
Additional context If I set in the global settings of Cefsharp "IgnoreCertificateErrors" to true it works. The problem is I cannot use it because I have in the same process two browser instances. I need the certificate ignore flag only on one instance or for one url. Maybe somebody knows a setting for doing this.
In the past there was an IgnoreCertificateError on the RequestContext but this was removed.
A developer of CefSharp gave me the following url to the necessary code: https://github.com/chromiumembedded/cef/blob/231701d98b1427a41a75098bd6bd3bd803f9dacc/libcef/browser/certificate_query.cc#L93
Does the problem reproduce with Google Chrome at the same version? In Google Chome I can make an certificate exception for the website and it works for the javascript.