Compare commits

..

2 Commits

Author SHA1 Message Date
Danilo Nascimento
b41f361619
Merge 7c4a54bf7ca08c9c7cb78d044e04e085cb960583 into 7bef2ccc6865c2bcc5f975921ce62fcae2eb35de 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 <QWebEngineCertificateError>
#include <plog/Log.h>
bool EnhancedWebPage::certificateError(const QWebEngineCertificateError &certificateError) {
LOGI << "An error occurred during certificate verification for" << certificateError.url() << "; " << certificateError.errorDescription();
return certificateError.deferred();
return true;
};

View File

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