---
source_url: "https://techdocs.akamai.com/application-security/reference/put-advanced-settings-cookie-settings?utm_source=openai"
title: Modify cookie settings
mirrored_at: 2026-08-04T12:31:54.512Z
host: techdocs.akamai.com
cited_in_42a: true
mirror_canonical: "https://index.42a.ai/techdocs.akamai.com/application-security/reference/put-advanced-settings-cookie-settings__q__utm_source_openai"
---

> **Original source:** https://techdocs.akamai.com/application-security/reference/put-advanced-settings-cookie-settings?utm_source=openai

1.  Configuration settings
2.  [Cookie Settings](https://techdocs.akamai.com/application-security/reference/cookie-settings)

put

https://{hostname}/appsec/v1/configs/{configId}/versions/{versionNumber}/advanced-settings/cookie-settings

**All products** Modify cookie settings for a configuration. Contact your account team if you'd like to run this operation.

Path Params

configId

int64

required

A unique identifier for each configuration.

versionNumber

integer

required

A unique identifier for each version of a configuration.

Query Params

accountSwitchKey

string

Body Params

Contains the cookie settings for a configuration.

cookieDomain

string

enum

Choose the type of domain. The default recommended type is `automatic`. Otherwise, choose `fqdn` to use the current Fully Qualified Domain name, `legacy` to use the original way in which the domain was selected, or `psl` to use the public suffix list to identify a private domain.

Allowed:

useAllSecureTraffic

boolean

If all of your traffic uses HTTPS, specify `true`. This option sets the Secure flag on all security product cookies, which are then only included with HTTPS traffic. It also adds `SameSite=None` to most bot management cookies, ensuring that recent browser versions submit the cookies with protected requests. The `SameSite=None` cookie setting is necessary for site architectures that involve cross-domain form submission or inclusion of cross-domain iframes.

Headers

accept

string

enum

Defaults to application/json

Generated from available response content types

Allowed:

Responses

Language

URL

Loading

Loading…

Response

Choose an example:

application/json

application/problem+json