Skip to content

Commit cdf8fba

Browse files
pedrosousaGregBrimble
authored andcommitted
[Page Shield, other] Add missing quotes (#22083)
1 parent 2f01168 commit cdf8fba

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/content/docs/page-shield/reference/page-shield-api.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ For a list of CSP directives and keywords supported by Page Shield policies, ref
485485
json={{
486486
description: "My first policy in log mode",
487487
action: "log",
488-
expression: "http.host eq myapp.example.com",
488+
expression: 'http.host eq "myapp.example.com"',
489489
enabled: "true",
490490
value:
491491
"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
501501
"id": "<POLICY_ID>",
502502
"description": "My first policy in log mode",
503503
"action": "log",
504-
"expression": "http.host eq myapp.example.com",
504+
"expression": "http.host eq \"myapp.example.com\"",
505505
"enabled": "true",
506506
"value": "script-src myapp.example.com cdnjs.cloudflare.com https://www.google-analytics.com/analytics.js 'self'"
507507
}

src/content/docs/style-guide/api-content-strategy/guidelines-for-curl-commands.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ curl https://api.cloudflare.com/api/v4/zones/$ZONE_ID/page_shield/policies \
183183
--data '{
184184
"description": "My first policy in log mode",
185185
"action": "log",
186-
"expression": "http.host eq myapp.example.com",
186+
"expression": "http.host eq \"myapp.example.com\"",
187187
"enabled": "true",
188188
"value": "script-src myapp.example.com cdnjs.cloudflare.com https://www.google-analytics.com/analytics.js '\''self'\''"
189189
}'

0 commit comments

Comments
 (0)