Spaces:
Running
Running
Download _headers from sitcod3/fortydnlab: direct link, hf CLI and curl.
- Browser
- Download file 1.36 kB
-
https://huggingface.co/spaces/sitcod3/fortydnlab/resolve/main/_headers
- Command line
-
hf download hf://spaces/sitcod3/fortydnlab/_headers
-
curl -L -o _headers https://huggingface.co/spaces/sitcod3/fortydnlab/resolve/main/_headers
1.36 kB
| # Security Headers for Cloudflare Pages | |
| # These headers apply to all routes unless overridden | |
| /* | |
| # Content Security Policy - Prevents XSS attacks | |
| Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline' https://cdn.paddle.com; style-src 'self' 'unsafe-inline'; img-src 'self' data: https:; connect-src 'self' https://*.supabase.co https://*.hf.space https://api.paddle.com https://sandbox-api.paddle.com; font-src 'self' data:; frame-ancestors 'none'; base-uri 'self'; form-action 'self' https://checkout.paddle.com https://sandbox-checkout.paddle.com | |
| # Prevent clickjacking | |
| X-Frame-Options: DENY | |
| # Prevent MIME type sniffing | |
| X-Content-Type-Options: nosniff | |
| # Referrer policy - Balance privacy and functionality | |
| Referrer-Policy: strict-origin-when-cross-origin | |
| # Permissions policy - Disable unused browser features | |
| Permissions-Policy: camera=(), microphone=(), geolocation=(), interest-cohort=() | |
| # Strict Transport Security - Force HTTPS (31536000 = 1 year) | |
| Strict-Transport-Security: max-age=31536000; includeSubDomains; preload | |
| # XSS Protection (legacy, but still useful for older browsers) | |
| X-XSS-Protection: 1; mode=block | |
| # API routes may need different CSP for JSON responses | |
| /api/* | |
| Content-Security-Policy: default-src 'none'; frame-ancestors 'none' | |
| X-Content-Type-Options: nosniff | |