Skip to content

[Docs] Add missing quotes #22083

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/content/docs/page-shield/reference/page-shield-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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'",
Expand All @@ -501,7 +501,7 @@ For a list of CSP directives and keywords supported by Page Shield policies, ref
"id": "<POLICY_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'"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'\''"
}'
Expand Down