---
schema_version: "1"
id: 3c91f7b4be6c14f36faa398232f15c5342e73cbe8df120e7c79221ff232dfa69
title: Access Violation Logs
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/commerce-cloud/commerce-api/guides/cdn-access-violation-logs.md
canonical_url: https://developer.salesforce.com/docs/commerce/pwa-kit-managed-runtime/guide/cdn-access-violation-logs.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 8429d6420a8ad2624866f102bb1069135b2f02c832a400f0b4d7d593f32dace9
products:
  - Composable Storefront
  - Salesforce APIs
---
# Access Violation Logs

## Prerequisites

Before you can view Page Shield violation logs, you must:

- Configure at least one Page Shield policy in the zone.
- Have access to the Log Center. For details, see [Start Log Center](https://help.salesforce.com/s/articleView?id=cc.b2c_start_log_center.htm&type=5).

## View Log Center Violation Logs

In the Log Center, specify a **Service Type** of **ecdn** to restrict the search. This provides violation logs and audit logs with details of when and how a policy was changed.

![Log Center Service Type ecdn](https://developer.salesforce.com/docs/media/commerce-api/ecdn-log-center-search.png '{"class": "image-sm"}')

Audit logs contain both old and new policy information, for example:

- Old value:
  ```json
  {"action":"allow","description":"Page shield Test Policy Allow-Non Payment",
  "enabled":true,
  "expression":"(http.host contains \"/shop.stg.bcxg.sfcc-store-internal.net\" and http.request.full_uri contains \"cart\") or (http.host contains \"shop.stg.bcxg.sfcc-store-internal.net\" and http.request.full_uri contains \"checkout\")",
  "value":"script-src cquotient.com _.cquotient.com paypal.com _.paypal.com salesforce.com _.salesforce.com sfcc-store-internal.net _.sfcc-store-internal.net stripe.com _.stripe.com",
  "id":"d01673584c044c699782bd99b453dd5b"},
  ```
- New value:
  ```json
  {"action":"allow","description":"Page shield Test Policy Allow-Non Payment",
  "enabled":false,"expression":"(http.host contains \"/shop.stg.bcxg.sfcc-store-internal.net\" and http.request.full_uri contains \"cart\") or (http.host contains \"shop.stg.bcxg.sfcc-store-internal.net\" and http.request.full_uri contains \"checkout\")",
  "value":"script-src stripe.com _.stripe.com",
  "id":"d01673584c044c699782bd99b453dd5b"}
  ```

![Log Center example log entries and details](https://developer.salesforce.com/docs/media/commerce-api/ecdn-log-center-example1.png '{"class": "image-lg"}')

![ Log Center example log entries and details](https://developer.salesforce.com/docs/media/commerce-api/ecdn-log-center-example2.png '{"class": "image-lg"}')

![ Log Center example log entries and details](https://developer.salesforce.com/docs/media/commerce-api/ecdn-log-center-example3.png '{"class": "image-lg"}')
