Fortinet white logo
Fortinet white logo

Administration Guide

Create or edit an HTTP header

Create or edit an HTTP header

You can change the following HTTP headers:

  • Header Client IP
  • Header via Request
  • Header via Response
  • Header x Forwarded For
  • header-x-forwarded-client-cert
  • Header Front End HTTPS
  • Header x Authenticated User
  • Header x Authenticated Groups

For each of these headers, you can set the action to the following:

  • Forward (pass) the same HTTP header
  • Add the HTTP header
  • Remove the HTTP header

The web proxy can add or remove custom headers from requests or responses. If you are adding a header, you can specify the content to be included in the added header.

Select Create New to open the Create Header window.

To open the Edit Header window, select a header and then click Edit.

Configure the following settings in the Create Header window or Edit Header window and then click OK:

Name

Enter a name for the HTTP forwarded header.

Action

Select the action for the HTTP forwarded header: add-to-request, add-to-response, remove-from-request, or remove-from-response.

Header Content

Enter the content of the HTTP header.

Base64 Encoding

Enable or disable base64 encoding.

Add Option

Select how the new header is added: append, new-on-not-found, or new.

Protocol

Select whether the new header uses HTTP, HTTPS, or both.

Destination Address

Select + to add destination addresses and destination address groups.

To create a web proxy profile and header from the CLI:

config web-proxy profile

edit <name>

set header-client-ip {add | pass | remove}

set header-via-request {add | pass | remove}

set header-via-response {add | pass | remove}

set header-x-forwarded-for {add | pass | remove}

set header-front-end-https {add | pass | remove}

set header-x-authenticated-user {add | pass | remove}

set header-x-authenticated-groups {add | pass | remove}

set strip-encoding {enable | disable}

set log-header-change {enable | disable}

config headers

edit <id>

set action {add-to-request | add-to-response | remove-from-request | remove-from-response}

set content <string>

set name <name>

end

end

next

end

Create or edit an HTTP header

Create or edit an HTTP header

You can change the following HTTP headers:

  • Header Client IP
  • Header via Request
  • Header via Response
  • Header x Forwarded For
  • header-x-forwarded-client-cert
  • Header Front End HTTPS
  • Header x Authenticated User
  • Header x Authenticated Groups

For each of these headers, you can set the action to the following:

  • Forward (pass) the same HTTP header
  • Add the HTTP header
  • Remove the HTTP header

The web proxy can add or remove custom headers from requests or responses. If you are adding a header, you can specify the content to be included in the added header.

Select Create New to open the Create Header window.

To open the Edit Header window, select a header and then click Edit.

Configure the following settings in the Create Header window or Edit Header window and then click OK:

Name

Enter a name for the HTTP forwarded header.

Action

Select the action for the HTTP forwarded header: add-to-request, add-to-response, remove-from-request, or remove-from-response.

Header Content

Enter the content of the HTTP header.

Base64 Encoding

Enable or disable base64 encoding.

Add Option

Select how the new header is added: append, new-on-not-found, or new.

Protocol

Select whether the new header uses HTTP, HTTPS, or both.

Destination Address

Select + to add destination addresses and destination address groups.

To create a web proxy profile and header from the CLI:

config web-proxy profile

edit <name>

set header-client-ip {add | pass | remove}

set header-via-request {add | pass | remove}

set header-via-response {add | pass | remove}

set header-x-forwarded-for {add | pass | remove}

set header-front-end-https {add | pass | remove}

set header-x-authenticated-user {add | pass | remove}

set header-x-authenticated-groups {add | pass | remove}

set strip-encoding {enable | disable}

set log-header-change {enable | disable}

config headers

edit <id>

set action {add-to-request | add-to-response | remove-from-request | remove-from-response}

set content <string>

set name <name>

end

end

next

end