--- title: Enable HTTP Only Cookie Flag description: Use the glide.cookies.http\_only property to enable the HTTPOnly attribute for sensitive cookies. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/platform-security/instance-security-hardening-settings/sc-http-only-cookie-flag.html release: australia product: Instance Security Hardening Settings classification: instance-security-hardening-settings topic_type: reference last_updated: "2026-03-12" reading_time_minutes: 1 breadcrumb: [Session management, Hardening settings, Platform Security] --- # Enable HTTP Only Cookie Flag Use the **glide.cookies.http\_only** property to enable the HTTPOnly attribute for sensitive cookies. If the **glide.cookies.http\_only** system property is not set to the recommended value of **true**, then the instance does not require the HTTPOnly attribute for sensitive cookies. Ensure that the property **glide.cookies.http\_only** is set to **true**. **Warning:** This is a safe harbor property, meaning the value can't be altered once it's changed. It is non-revertible. ## More information
Attribute Description
Configuration name **glide.cookies.http\_only**
Configuration type System Properties \(/sys\_properties\_list.do\)
Data type Boolean
Recommended value true
Default value <none>
Fallback value true
Category [Session management](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-security/instance-security-hardening-settings/sc-session-management.md)
Security risk - Severity score: 8.0 - CVSS rating: High - Security risk details: The HTTPOnly attribute is used to prevent attacks, such as cross-site scripting, because it doesn't allow access to the cookie using a client-side script, such as JavaScript.
Functional impact None
Dependencies and prerequisites None
To learn more about adding or creating a system property, see [Add a system property](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-administration/t_AddAPropertyUsingSysPropsList.md). **Parent Topic:**[Session management](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-security/instance-security-hardening-settings/sc-session-management.md)