Compare commits

..

2 Commits

Author SHA1 Message Date
Danilo Nascimento
45f9e5299a
Merge 0c848a249d1d420791bcb01bf0f81d0af2813cb8 into 7bef2ccc6865c2bcc5f975921ce62fcae2eb35de 2023-06-23 13:53:35 +00:00
Danilo Nascimento
0c848a249d Fix: handshake failed by ERR_CERT_AUTHORITY_INVALID 2023-06-23 10:51:05 -03:00
2 changed files with 8 additions and 4 deletions

View File

@ -1,6 +1,9 @@
#include "enhancedwebpage.h" #include "enhancedwebpage.h"
#include <QWebEngineCertificateError>
#include <plog/Log.h>
bool EnhancedWebPage::certificateError(const QWebEngineCertificateError &certificateError) { bool EnhancedWebPage::certificateError(const QWebEngineCertificateError &certificateError) {
return true; LOGI << "An error occurred during certificate verification for" << certificateError.url() << "; " << certificateError.errorDescription();
return certificateError.deferred();
}; };

View File

@ -3,9 +3,10 @@
#include <QtWebEngineWidgets/qwebenginepage.h> #include <QtWebEngineWidgets/qwebenginepage.h>
class EnhancedWebPage : public QWebEnginePage { class EnhancedWebPage : public QWebEnginePage
protected: {
bool certificateError(const QWebEngineCertificateError &certificateError); protected:
bool certificateError(const QWebEngineCertificateError &certificateError) override;
}; };
#endif // !ECHANCEDWEBPAG #endif // !ECHANCEDWEBPAG