Skip to content

feat: implement structured X-Client-Info header #255

Closed
supabase-community/core-csharp
#2

Description

@grdsdev

Background

Supabase is consolidating client metadata into a single structured X-Client-Info header instead of sending multiple separate headers. The motivation is that adding a new HTTP header in supabase-js is a breaking change for applications running in Edge Functions — users must explicitly allowlist headers in their CORS config. Since X-Client-Info is already in every allowlist, extending it as a structured value lets all SDKs add new metadata fields freely.

New format

X-Client-Info: name/version[; key=value ...]

Parameters are semicolon-delimited key=value pairs after the library token (same convention as Content-Type). Order is not guaranteed — parsers must locate by key.

Example:

X-Client-Info: supabase-csharp/1.0.0; platform=Windows; platform-version=10.0.0; runtime=dotnet; runtime-version=8.0

Parameters to include

Parameter Description Notes
platform OS / host environment Windows, Linux, macOS, iOS, Android, browser
platform-version OS version string Follow host platform convention
runtime Language runtime dotnet
runtime-version Runtime version e.g. 8.0
framework App framework if detectable maui, blazor, unity, etc.
framework-version Framework version

All parameters are optional — omit entirely when the value cannot be determined. Do not use empty strings or unknown as values.

Spec

Full behavior contract: supabase/sdk#3

Deprecated headers to stop sending

Once this is implemented, the following separate headers should no longer be sent:

  • X-Supabase-Client-Platform
  • X-Supabase-Client-Platform-Version
  • X-Supabase-Client-Runtime
  • X-Supabase-Client-Runtime-Version

(Remove them only if this SDK currently sends them — no action needed if they were never added.)

Activity

  1. self-assigned this
    on Jul 1, 2026
  2. added
    feature
    on Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

feature

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions