Configure HTTP response headers
-
- UpdatedJan 30, 2025
- 4 minutes to read
- Yokohama
- Now Platform Capabilities
Configure standard name-value pairs for HTTP response headers. You designate if the configuration applies to all pages, or to specific types (Service Portal, UI Page, or UX application record).
Before you begin
Role required: An elevated access security_admin role is required to configure an All Pages type header. An admin role is required to configure a Specific Type header.
Procedure
HTTP header configuration for advanced users
The HTTP response header table (sys_response_header) in the List view contains two additional columns - Add by and Order.
Column | Description |
---|---|
Order | Adds a default integer order value to a header configuration
regardless of the type of header (All Pages
or a Specific page).
|
Add By | Contains the following values:
|
You may have situations where a couple of similar All Pages type header configurations could overwrite a Specific Type type header configuration. An example of a Specific Type configuration would be one for a specific UI page. You can remedy this situation by adjusting the Add by and Order columns, as in the following examples.
Append example
The ServiceNow AI Platform is trying to set headers in the following order, and
Append is the default value for each in the
Add By column.
In this example, the second (Header 2) and third (Header 3) response header configurations have the same name (Content-Security-Policy). In this case, Header 3 is appended to Header 2. If a request is made for a specific page you configured with a Header 3 response, the net HTTP response headers are both Header 2 and Header 3.

Overwrite
The ServiceNow AI Platform is
trying to set headers in the following order, and you've selected
Overwrite in the Add By column for
the third header.
In this example, the second (Header 2) and third (Header 3) response header configurations have the same name (Content-Security-Policy). In this case, Header 3 overwrites Header 2. If a request is made for a specific page you configured with a Header 3 response, the net HTTP response header is only Header 3.
