-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_headers
More file actions
28 lines (27 loc) · 1.98 KB
/
Copy path_headers
File metadata and controls
28 lines (27 loc) · 1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Cloudflare Pages / Netlify _headers format. Copied verbatim into public/_headers
# by docs/scripts/aggregate.sh so it sits next to CNAME at the site root.
#
# GitHub Pages itself ignores this file (Pages does not support custom response
# headers). It is consumed by whichever edge sits in front of the origin — today
# Cloudflare in front of GitHub Pages via a Transform Rule / Worker, and
# natively by Cloudflare Pages if this site is ever migrated there. Keeping the
# policy under version control here is the single source of truth for the docs
# hub's response-header baseline. See AAASM-4315.
#
# CSP is Report-Only for now so real violations surface without blocking any
# request — the aggregator pulls four separately-generated sites (mdBook,
# mkdocs-material, Docusaurus, Hugo+Hextra) plus mermaid.min.js, Pagefind, and
# GA4, and we want telemetry from every page before flipping to enforce.
/*
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
Referrer-Policy: strict-origin-when-cross-origin
Permissions-Policy: camera=(), microphone=(), geolocation=(), payment=(), usb=()
# connect-src origins: 'self' = same-origin XHR (head.hbs fetches versions.json /
# modules.json); *.agent-assembly.com = cross-subdomain hub assets;
# www.google-analytics.com = GA4 beacon; api.github.com = mkdocs-material
# source-facts widget in the aggregated component docs. (pypi.org /
# registry.npmjs.org / raw.githubusercontent.com removed — never fetched:
# the PyPI/npm version badges are shields.io images with plain-anchor hrefs.)
Content-Security-Policy-Report-Only: default-src 'self' *.agent-assembly.com; script-src 'self' 'unsafe-inline' www.googletagmanager.com; style-src 'self' 'unsafe-inline' fonts.googleapis.com; img-src 'self' data: https:; font-src 'self' data: fonts.gstatic.com; connect-src 'self' *.agent-assembly.com www.google-analytics.com api.github.com; frame-ancestors 'none'; base-uri 'self'