Client-side protection configuration
akamai_appsec_clientside_protection_configuration
Create and manage your security policy's client-side protection & compliance (CPC) configuration.
Note: This feature requires an active CPC entitlement on your account.
resource "akamai_appsec_clientside_protection_configuration" "my_cpc_config" {
config_id = 12345
security_policy_id = "abcd_123456"
edge_injection = {
load_script_async = true
}
edge_test_parameters = {
disable_injection_key = "cpc-disable"
disable_injection_value = "true"
force_injection_key = "cpc-force"
force_injection_value = "true"
}
injection_criteria = {
injection_path_includes = "/shop/*"
injection_path_excludes = "/shop/static/*"
injection_percent = 100
injection_policy = "head"
script_tag_attributes = ["nonce=\"abc123\""]
}
}Arguments
| Argument | Required | Description |
|---|---|---|
config_id | ✔️ | A security configuration ID. Changing this value forces creation of a new resource. |
security_policy_id | ✔️ | A security policy ID. Changing this value forces creation of a new resource. |
edge_injection | ✔️ | Controls how the CPC script is loaded by the edge. Contains:
|
edge_test_parameters | ✔️ | Query string parameters used to override script injection behavior during testing. Contains:
|
injection_criteria | ✔️ | Controls which requests receive the injected script and how the script tag is placed. Contains:
|
Updated about 2 hours ago
Did this page help you?
