SEND_VERSION

The SEND_VERSION element defines whether the GAS sends the GAS version to the client.

Syntax

<SEND_VERSION>{"TRUE"|"FALSE"}</SEND_VERSION>
  1. Valid values are TRUE or FALSE. When SEND_VERSION is set to TRUE, the GAS version is sent in the header, X-FourJs-Version, to the client. The default is FALSE, set by the $(res.http.send.version) resource value.

Child elements

There are no child elements.

Usage

Use the SEND_VERSION to configure sending the GAS version number to the client. By default the X-FourJs-Version header is not sent using FastCGI and IIS dispatchers. You can change this behavior by setting the SEND_VERSION. Be aware that exposing the GAS version number on the client side may have security implications.

The standalone dispatcher (httpdispatch), as a development tool, always ignores this configuration entry. The standalone dispatcher always sends the X-FourJs-Version header.

Important: The standalone GAS is for development only; provided to simplify your development setup and configuration. For deployment and production systems, you must include a Web server.

Example sending GAS version

<INTERFACE_TO_CONNECTOR>
  ...
  <HTTP>
    <SEND_VERSION>TRUE</SEND_VERSION>
     ...
  </HTTP>
</INTERFACE_TO_CONNECTOR>

Override the default

The $(res.http.send.version) resource can be used at the command line to change the GAS value.

fastcgidispatch -s -E res.http.send.version=TRUE

For more information about using the override, go to Override configuration resources.

Parent elements

This element is a child of the HTTP element.