-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_headers
More file actions
25 lines (20 loc) · 1013 Bytes
/
_headers
File metadata and controls
25 lines (20 loc) · 1013 Bytes
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
/*
# Security Headers
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Referrer-Policy: strict-origin-when-cross-origin
Permissions-Policy: geolocation=(), microphone=(), camera=()
# Content Security Policy (relaxed for CDNs and inline styles)
Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://cdnjs.cloudflare.com; font-src 'self' https://fonts.gstatic.com https://cdnjs.cloudflare.com; img-src 'self' data: https:; connect-src 'self' https://generativelanguage.googleapis.com https://formspree.io; frame-ancestors 'self'
# Cache Control
Cache-Control: public, max-age=31536000, immutable
/*.html
# HTML files - shorter cache
Cache-Control: public, max-age=3600
/index.html
# Home page - no cache for updates
Cache-Control: no-cache, must-revalidate
/api/*
# API routes - no cache
Cache-Control: no-store, no-cache, must-revalidate