flayks
flayks
CDCloudflare Developers
Created by flayks on 4/21/2025 in #pages-help
_headers with SvelteKit not applied?
heya, on my SvelteKit site using the cloudflare-pages adapter, I have a _headers file with this content and these show in the Headers tab of my CF deployment but the headers don't show in my network tab requests, any idea why? 🤔
/*
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Referrer-Policy: no-referrer-when-downgrade
Permissions-Policy: document-domain=()
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
Feature-Policy: geolocation 'self'
Content-Security-Policy: default-src 'self'; [...and more stuff];

/:all*(woff2?|jpe?g|png|gif|svg|js|xml|txt|json|css|mp4|webm|avif)
Cache-Control: public, max-age=31536000, immutable
/*
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Referrer-Policy: no-referrer-when-downgrade
Permissions-Policy: document-domain=()
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
Feature-Policy: geolocation 'self'
Content-Security-Policy: default-src 'self'; [...and more stuff];

/:all*(woff2?|jpe?g|png|gif|svg|js|xml|txt|json|css|mp4|webm|avif)
Cache-Control: public, max-age=31536000, immutable
7 replies
CDCloudflare Developers
Created by flayks on 7/3/2023 in #workers-help
Access Worker url as "directory" from Pages app
1 replies
CDCloudflare Developers
Created by flayks on 5/20/2023 in #pages-help
Create multiple Pages projects with a monorepo
7 replies