Skip to content

Commit 8ffc960

Browse files
committed
[Page Shield] Add FAQ page
1 parent cd01d50 commit 8ffc960

File tree

3 files changed

+31
-5
lines changed

3 files changed

+31
-5
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: Page Shield FAQ
3+
pcx_content_type: faq
4+
sidebar:
5+
order: 8
6+
label: FAQ
7+
---
8+
9+
import { Render } from "~/components";
10+
11+
## What happens to CSP HTTP headers set by the origin server when I create a policy?
12+
13+
<Render file="policy-headers" product="page-shield" />
14+
15+
Page Shield only adds new CSP HTTP headers to the response. This means that Cloudflare will keep any `Content-Security-Policy-Report-Only` and `Content-Security-Policy` HTTP headers in the response set by the origin server and it will add separate HTTP headers for the policies configured on your Cloudflare zone.
16+
17+
It is recommended that you only have one policy in [allow mode](/page-shield/policies/#policy-actions) (that is, a policy being enforced). If there is more than one `Content-Security-Policy` HTTP header in the response, the most restrictive policy wins. For more information, refer to the [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy#multiple_content_security_policies).
18+
19+
## Can I add a `nonce` CSP directive to a policy?
20+
21+
Page Shield currently does not support [`nonce`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CSP#nonces) directives in policies. Instead, you can use a [`hash`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CSP#hashes) CSP directive. For details on the supported directives and values, refer to [Supported CSP directives](/page-shield/policies/csp-directives/).

src/content/docs/page-shield/how-it-works/index.mdx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description: Page Shield tracks resources (such as scripts) loaded by your
1010
malicious resources.
1111
---
1212

13-
import { GlossaryTooltip } from "~/components";
13+
import { GlossaryTooltip, Render } from "~/components";
1414

1515
Page Shield helps manage client-side resources loaded by your website visitors, including scripts, their connections, and [cookies](https://www.cloudflare.com/learning/privacy/what-are-cookies/). It can trigger alert notifications when resources change or are considered malicious.
1616

@@ -26,10 +26,7 @@ Enterprise customers with a paid add-on have access to additional classification
2626

2727
Enterprise customers with a paid add-on can create [policies](/page-shield/policies/) to define a positive security model (also known as positive blocking) for resources such as scripts.
2828

29-
When you create policies, Cloudflare will generate CSP directives from those policies based on their configuration:
30-
31-
- Log policies will create CSP directives for the `Content-Security-Policy-Report-Only` HTTP header.
32-
- Allow policies will create CSP directives for the `Content-Security-Policy` HTTP header.
29+
<Render file="policy-headers" product="page-shield" />
3330

3431
For more information, refer to [Policies](/page-shield/policies/).
3532

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
{}
3+
---
4+
5+
When you create policies, Cloudflare will generate content security policy (CSP) directives from those policies based on their configuration:
6+
7+
- Log policies will create CSP directives for the `Content-Security-Policy-Report-Only` HTTP header.
8+
- Allow policies will create CSP directives for the `Content-Security-Policy` HTTP header.

0 commit comments

Comments
 (0)