Skip to content

Commit

Permalink
Only ignore SSL errors on non qfield.cloud endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Feb 18, 2025
1 parent 7d77700 commit 3fbbfe5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/networkreply.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ void NetworkReply::initiateRequest()
for ( const QSslError &error : errors )
qDebug() << "SSL: " << error;

mReply->ignoreSslErrors( errors );
if ( !mRequest.url().host().endsWith( QStringLiteral( ".qfield.cloud" ) ) )
{
mReply->ignoreSslErrors( errors );
}
} );
}

Expand Down

1 comment on commit 3fbbfe5

@qfield-fairy
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.