matrix.org/static/_headers
HarHarLinks 383fe18677 update Access-Control-Allow-* Headers to spec v.13
Signed-off-by: HarHarLinks <2803622+HarHarLinks@users.noreply.github.com>
2025-06-24 12:23:36 +02:00

25 lines
810 B
Text

# Remove the ACAO header which is added by default on Cloudflare Pages
# Enables XSS filtering
# Avoid MIME type sniffing
# Set HSTS
# Set X-Frame-Options
# Referrer-Policy: default
/*
! Access-Control-Allow-Origin
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
X-Frame-Options: SAMEORIGIN
Referrer-Policy: strict-origin-when-cross-origin
# Allow ACAO for well-known records and serve them as JSON
/.well-known/matrix/*
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS
Access-Control-Allow-Headers: X-Requested-With, Content-Type, Authorization
Content-Type: application/json
# Add content type for jira archive
/jira/browse/*
Content-Type: text/plain