Skip to content

Disabling sendEnhancedClientAwareness Still Sends Client Awareness Headers #3586

@trevholliday

Description

@trevholliday

Summary

Unexpected Behavior When Disabling Client Awareness:
Setting the sendEnhancedClientAwareness property to false on the RequestChainNetworkTransport does not prevent the headers apollographql-client-name and apollographql-client-version from being included in the request. This behavior contradicts the expectation that toggling this flag would completely disable these headers.

Opt-In Requirement for New Headers:
Any new headers that modify the request behavior or introduce additional metadata should follow an opt-in implementation pattern. By default, new headers should be disabled and require explicit user configuration

Version

1.23.0

Steps to reproduce the behavior

  1. During initialization of the RequestChainNetworkTransport set sendEnhancedClientAwareness to false.
  2. Requests still sending apollographql-client-name and apollographql-client-version

Logs

Anything else?

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions