Repository navigation
Expand file tree
/
Copy path_headers
More file actions
22 lines (22 loc) · 1.74 KB
/
Copy path_headers
File metadata and controls
22 lines (22 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Headers applied by Cloudflare Pages to every response from this site.
# Referrer-Policy and X-Content-Type-Options already come from Cloudflare, so
# they are not repeated here to avoid sending each header twice.
#
# The whole app is inline in index.html and loads nothing from third parties,
# so the policy can stay on 'self'. The exceptions are all needed:
# 'unsafe-inline' in script-src -> the app itself and the JSON-LD block are
# inline; blocking them breaks the page and
# hides the structured data from Googlebot
# 'unsafe-inline' in style-src -> inline <style> blocks
# data: in font-src -> the five fonts are embedded as data URLs
# data:/blob: in img-src -> the canvas preview exports through
# toDataURL and downloads as a blob
# static.cloudflareinsights.com -> the Web Analytics beacon, injected by
# Cloudflare at the edge. It is in no file in
# this repository, and without allowing it the
# site analytics silently stop being collected
/*
Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline' https://static.cloudflareinsights.com; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob:; font-src 'self' data:; connect-src 'self' https://cloudflareinsights.com; frame-src 'none'; frame-ancestors 'none'; base-uri 'self'; form-action 'none'; object-src 'none'; upgrade-insecure-requests
Strict-Transport-Security: max-age=31536000
X-Frame-Options: DENY
Permissions-Policy: accelerometer=(), camera=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), usb=()