Skip to content

Commit c54b851

Browse files
patriciasantaanaRebeccaTamachiro
authored andcommitted
Caveats (#20641)
1 parent aaf8354 commit c54b851

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/content/docs/waf/reference/cloudflare-challenges.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,13 @@ You can customize your favicon by using the HTML snippet below.
166166

167167
---
168168

169-
## Custom Content Security Policy not supported
169+
## Caveats for Transform Rules and custom error pages
170170

171171
You cannot set your own Content Security Policy (CSP) and/or Referer-Policy via meta tags or [Transform Rules](/rules/transform/) in challenge pages.
172172

173-
If you are setting a CSP using Transform Rules for your entire website, you should [exclude URI paths starting with `/cdn-cgi/challenge-platform/`](/rules/reference/troubleshooting/#interaction-between-cloudflare-challenges-and-rules-features) in the rule expression to avoid issues with challenges.
173+
Origin headers also cannot be modified for challenge pages.
174+
175+
If you are setting any of these headers using Transform Rules for your entire website, you must prefix the rule with `not (starts_with(http.request.uri.path, "/cdn-cgi/challenge-platform/") or cf.response.error_type in {"managed_challenge" "iuam" "legacy_challenge" "country_challenge"})` in the rule expression to avoid issues with challenges.
174176

175177
---
176178

0 commit comments

Comments
 (0)