Compare commits

..

2 Commits

Author SHA1 Message Date
Danilo Nascimento
b41f361619 Merge 7c4a54bf7c into 7bef2ccc68 2023-06-22 23:10:58 +00:00
Danilo Nascimento
7c4a54bf7c Fix: handshake failed by ERR_CERT_AUTHORITY_INVALID 2023-06-22 18:41:04 -03:00
2 changed files with 4 additions and 8 deletions

View File

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

View File

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