Cookie settings

Synopsis

Modify cookie settings.

Syntax

Set-AppSecCookieSettings [-VersionNumber] <String> [-UseAllSecureTraffic] [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Set-AppSecCookieSettings [-ConfigName] <String> [-VersionNumber] <String> [-UseAllSecureTraffic] -Body <Object> [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Set-AppSecCookieSettings [-ConfigName] <String> [-VersionNumber] <String> [-CookieDomain <String>] [-UseAllSecureTraffic] [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Set-AppSecCookieSettings -ConfigID <Int32> [-VersionNumber] <String> [-UseAllSecureTraffic] -Body <Object> [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Set-AppSecCookieSettings -ConfigID <Int32> [-VersionNumber] <String> [-CookieDomain <String>] [-UseAllSecureTraffic] [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

Description

Modify cookie settings for a configuration.

When making a request, you can specify a configuration by its name or ID. The -VersionNumber parameter is an integer or the word latest.

Parameters

‑AccountSwitchKey

An account credential key that lets you move between accounts when using an API client enabled for multiple accounts. To find account switch keys, use Get-AccountSwitchKey.

‑Body
Conditionally required

The request body, either as a PSCustomObject or a string. This parameter supports pipelining.

‑ConfigID
Conditionally required

Your configuration's ID.

‑ConfigName
Conditionally required

The name of your security configuration.

‑CookieDomain

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.

‑EdgeRCFile

Your EdgeGrid resource file to authenticate your command. Defaults to ~/.edgerc.

‑Section

The section name in your EdgeGrid resource file to retrieve authentication credentials from. Defaults to default.

‑UseAllSecureTraffic

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.

‑VersionNumber
Required

A configuration's version. Can be an integer or the word latest.

Related Links