From 5d47146761e60977835ea861856de69c9b955605 Mon Sep 17 00:00:00 2001 From: Pedro Sousa <680496+pedrosousa@users.noreply.github.com> Date: Wed, 30 Apr 2025 09:55:41 +0100 Subject: [PATCH] [Docs] Add missing quotes --- src/content/docs/page-shield/reference/page-shield-api.mdx | 4 ++-- .../api-content-strategy/guidelines-for-curl-commands.mdx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/content/docs/page-shield/reference/page-shield-api.mdx b/src/content/docs/page-shield/reference/page-shield-api.mdx index d3f31360a6f4f52..00b393f605b8de6 100644 --- a/src/content/docs/page-shield/reference/page-shield-api.mdx +++ b/src/content/docs/page-shield/reference/page-shield-api.mdx @@ -485,7 +485,7 @@ For a list of CSP directives and keywords supported by Page Shield policies, ref json={{ description: "My first policy in log mode", action: "log", - expression: "http.host eq myapp.example.com", + expression: 'http.host eq "myapp.example.com"', enabled: "true", value: "script-src myapp.example.com cdnjs.cloudflare.com https://www.google-analytics.com/analytics.js 'self'", @@ -501,7 +501,7 @@ For a list of CSP directives and keywords supported by Page Shield policies, ref "id": "", "description": "My first policy in log mode", "action": "log", - "expression": "http.host eq myapp.example.com", + "expression": "http.host eq \"myapp.example.com\"", "enabled": "true", "value": "script-src myapp.example.com cdnjs.cloudflare.com https://www.google-analytics.com/analytics.js 'self'" } diff --git a/src/content/docs/style-guide/api-content-strategy/guidelines-for-curl-commands.mdx b/src/content/docs/style-guide/api-content-strategy/guidelines-for-curl-commands.mdx index 0a568f2bfae3037..870e1a5d54945c3 100644 --- a/src/content/docs/style-guide/api-content-strategy/guidelines-for-curl-commands.mdx +++ b/src/content/docs/style-guide/api-content-strategy/guidelines-for-curl-commands.mdx @@ -183,7 +183,7 @@ curl https://api.cloudflare.com/api/v4/zones/$ZONE_ID/page_shield/policies \ --data '{ "description": "My first policy in log mode", "action": "log", - "expression": "http.host eq myapp.example.com", + "expression": "http.host eq \"myapp.example.com\"", "enabled": "true", "value": "script-src myapp.example.com cdnjs.cloudflare.com https://www.google-analytics.com/analytics.js '\''self'\''" }'