diff --git a/src/AzureIoTHub.Portal.Client/Program.cs b/src/AzureIoTHub.Portal.Client/Program.cs index 6c358e56d..1d99c4214 100644 --- a/src/AzureIoTHub.Portal.Client/Program.cs +++ b/src/AzureIoTHub.Portal.Client/Program.cs @@ -28,6 +28,7 @@ { client.BaseAddress = new Uri(builder.HostEnvironment.BaseAddress); client.DefaultRequestHeaders.Add("X-Version", "1.0"); + _ = client.EnableIntercept(sp); }).AddHttpMessageHandler() .AddHttpMessageHandler();