Aller au contenu

$browser_version

The $browser_version variable provides the full version string of the browser making the request.

Type

string

Possible values

Examples include: - 120.0.0.0

Example

You can use the $browser_version variable to set a custom header in a proxy request:

location /api {
    proxy_pass http://backend;
    proxy_set_header X-Browser-Version $browser_version;
}