nico
Explore posts from serversCDCloudflare Developers
•Created by nico on 2/9/2025 in #pages-help
Missing Content-Security-Policy & Permissions-Policy Headers on Cloudflare Pages Deployment
Shown (and somehow duplicated) _headers content in Dashboard:
What I've Tried:
1. Verified that
_headers
is included in the deployment (it's visible in the Cloudflare Pages build logs and dashboard as shown above).
2. Checked the security headers report using securityheaders.com, which still shows missing CSP and Permissions-Policy headers.
3. Confirmed that Cloudflare Pages does apply other headers (e.g., Strict-Transport-Security
, X-Frame-Options
, etc.).
4. Cleared Cloudflare Cache and redeployed multiple times.
5. Checked Firefox DevTools → Network tab → Security headers are missing in the final response.
Questions:
1. Does Cloudflare Pages override or ignore certain headers from _headers
?
2. Are there any known limitations when using _headers
for CSP and Permissions-Policy?
3. Is there a recommended way to debug why these specific headers are not applied, even though others are?
Any guidance would be greatly appreciated! Thanks in advance.2 replies