Skip to content

Commit 7dabb2c

Browse files
committed
Update example
1 parent 9ae1254 commit 7dabb2c

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

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

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -476,8 +476,6 @@ For more information on <GlossaryTooltip term="content security policy (CSP)">Co
476476
For a list of CSP directives and keywords supported by Page Shield policies, refer to [CSP directives supported by policies](/page-shield/policies/csp-directives/).
477477
:::
478478

479-
TODO. Fix example.
480-
481479
<APIRequest
482480
path="/zones/{zone_id}/page_shield/policies"
483481
method="POST"
@@ -491,19 +489,6 @@ TODO. Fix example.
491489
}}
492490
/>
493491

494-
```bash
495-
curl "https://api.cloudflare.com/api/v4/zones/{zone_id}/page_shield/policies" \
496-
--header "Authorization: Bearer <API_TOKEN>" \
497-
--header "Content-Type: application/json" \
498-
--data '{
499-
"description": "My first policy in log mode",
500-
"action": "log",
501-
"expression": "http.host eq myapp.example.com",
502-
"enabled": "true",
503-
"value": "script-src myapp.example.com cdnjs.cloudflare.com https://www.google-analytics.com/analytics.js '\''self'\''"
504-
}'
505-
```
506-
507492
```json output
508493
{
509494
"success": true,

0 commit comments

Comments
 (0)