Skip to content

Commit

Permalink
chore : add ssl 인증서 검증 비활성화 주석
Browse files Browse the repository at this point in the history
  • Loading branch information
SAgiKPJH committed Oct 28, 2024
1 parent 7374852 commit 80f3f1b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
services.AddSingleton(provider =>
{
// SSL 인증서 검증을 비활성화
var httpClientHandler = new HttpClientHandler();
httpClientHandler.ServerCertificateCustomValidationCallback = (message, cert, chain, errors) => true;
var channel = GrpcChannel.ForAddress(serverUrl ?? "https://localhost:5050", new GrpcChannelOptions { HttpClient = new HttpClient(httpClientHandler) });
Expand Down

0 comments on commit 80f3f1b

Please sign in to comment.