Skip to content

Commit b2296d7

Browse files
authored
feat(templates): remove duplicate submission of x-app-* headers in boilerplate #11515 (#11536)
1 parent eb80840 commit b2296d7

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Extensions/IClientCoreServiceCollectionExtensions.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,6 @@ public static IServiceCollection AddClientCoreProjectServices(this IServiceColle
167167
.WithAutomaticReconnect(sp.GetRequiredService<IRetryPolicy>())
168168
.WithUrl(new Uri(absoluteServerAddressProvider.GetAddress(), "app-hub"), options =>
169169
{
170-
var telemetryContext = sp.GetRequiredService<ITelemetryContext>();
171-
172-
options.Headers.Add("X-App-Version", telemetryContext.AppVersion!);
173-
options.Headers.Add("X-App-Platform", AppPlatform.Type.ToString());
174-
175170
options.SkipNegotiation = false; // Required for Azure SignalR.
176171
options.Transports = HttpTransportType.WebSockets;
177172
// Avoid enabling long polling or Server-Sent Events. Focus on resolving the issue with WebSockets instead.

0 commit comments

Comments
 (0)