Enable HTTP Only Cookie Flag
reference brazil Updated Sep 10, 2026 1 min read sc-http-only-cookie-flag.md
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 |
true |
|
Fallback value |
true |
|
Category | |
|
Security risk |
|
|
Functional impact |
None |
|
Dependencies and prerequisites |
None |
Parent Topic:Session management
122 lines · 2.6 KB
--- 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/platform-security/instance-security-hardening-settings/sc-http-only-cookie-flag.html release: brazil product: Instance Security Hardening Settings classification: instance-security-hardening-settings topic_type: reference last_updated: "2026-09-10" 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 <table id="table_ajc_b43_3kb"><thead><tr><th> Attribute </th><th> Description </th></tr></thead><tbody><tr><td> Configuration name </td><td> **glide.cookies.http\_only** </td></tr><tr><td> Configuration type </td><td> System Properties \(/sys\_properties\_list.do\) </td></tr><tr><td> Data type </td><td> Boolean </td></tr><tr><td> Recommended value </td><td> true </td></tr><tr><td> Default value </td><td> true </td></tr><tr><td> Fallback value </td><td> true </td></tr><tr><td> Category </td><td> [Session management](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/platform-security/instance-security-hardening-settings/sc-session-management.md) </td></tr><tr><td> Security risk </td><td> - 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. </td></tr><tr><td> Functional impact </td><td> None </td></tr><tr><td> Dependencies and prerequisites </td><td> None </td></tr></tbody> </table>To learn more about adding or creating a system property, see [Add a system property](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/platform-administration/t_AddAPropertyUsingSysPropsList.md). **Parent Topic:**[Session management](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/platform-security/instance-security-hardening-settings/sc-session-management.md)
| 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/platform-security/instance-security-hardening-settings/sc-http-only-cookie-flag.html |
| release | brazil |
| product | Instance Security Hardening Settings |
| classification | instance-security-hardening-settings |
| topic_type | reference |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | Session managementHardening settingsPlatform Security |