Understand HTTP headers in Itential Platform
This guide outlines various security enhancements to the HTTP headers in Itential Platform and why httpOnly was not set on all occurrences.
Default HTTP response headers
Configurable headers
The Access-Control-Allow-Origin header is configurable within an Itential Platform profile. It can be set within the expressProps under a property called access_control_allow_origin. When this is set to a value different from the default of * it will also add Origin to the Vary header.
Additional headers if cacheControl is turned on
These are defined in the expressProps of the Profile document.
Cookies
The Set-Cookie HTTP response header is used to send cookies from the server to the user agent. Cookies are saved on login and tokens are used for sessions.
HTTP verbs
This constraint is effective beginning with 2023.2 and future releases.
To support network security policies and provide an additional layer of control, Itential will not accept or process any non-standard HTTP verbs Itential Platform does not require for its operation. Further detail is described in the sections that follow.
Always allowed HTTP verbs
The following set of HTTP verbs will always be accepted in Itential Platform:
GET, POST, PUT, PATCH, HEAD, OPTIONS, DELETE
For any verbs not on this list, Itential has implemented a new property, allowedHttpOptionalVerbs, that will allow admins to specify an array of optional HTTP verbs Itential Platform can process. By default, non-permitted verbs are blocked from accessing the application. Consequently, Itential Platform will not process any server requests that contain restricted verbs and that are not defined (“turned on”) in the allowedHttpOptionalVerbs property.
Optional HTTP verbs
As listed below, there are 26 optional HTTP verbs Itential admins can use. A 405 error (“Method Not Allowed”) is returned if the server request uses a verb not on the list.
These verbs must be in uppercase format.
How to Configure Alternate HTTP Verbs
To configure the HTTP verbs that can be used for inbound requests to the Itential Platform server, use expressProps in the active Itential Platform profile to configure the allowedHttpOptionalVerbs property.
- Log in and navigate to Itential Platform → Administration → Admin Essentials.
- Select the active profile under Profiles.
- Click the Configure tab.
- Select
expressPropsunder Edit Profile Properties. - Update the
allowedHttpOptionalVerbsproperty to include the desired verbs from the allowed list above. - Click Save to finalize your changes.
- Restart Itential Platform.