chore: headers file

This commit is contained in:
Cory Dransfeldt 2024-06-07 13:36:22 -07:00
parent afb2d1ea66
commit 6d806b35c0
No known key found for this signature in database
2 changed files with 40 additions and 0 deletions

View file

@ -35,6 +35,7 @@ export default async function (eleventyConfig) {
// passthrough
eleventyConfig.addPassthroughCopy('src/assets')
eleventyConfig.addPassthroughCopy('_redirects')
eleventyConfig.addPassthroughCopy('_headers')
eleventyConfig.addPassthroughCopy({
'node_modules/minisearch/dist/umd/index.js': 'assets/scripts/components/minisearch.js',
})

39
_headers Normal file
View file

@ -0,0 +1,39 @@
/feeds/posts
Content-Type: application/xml; charset=utf-8
x-content-type-options: nosniff
/feeds/links
Content-Type: application/xml; charset=utf-8
x-content-type-options: nosniff
/feeds/books
Content-Type: application/xml; charset=utf-8
x-content-type-options: nosniff
/.well-known/webfinger
Content-Type: application/jrd+json; charset=utf-8
/.well-known/gpc.json
Content-Type: application/jrd+json; charset=utf-8
/.well-known/traffic-advice
Content-Type: application/trafficadvice+json
/contribute.json
Content-Type: application/json
/api/now-playing
Content-Type: application/json
/api/search
Content-Type: application/json
/blogroll.opml
Content-Disposition: attachment; filename=cory-dransfeldt-blogroll.opml
/*
Content-Security-Policy: upgrade-insecure-requests; block-all-mixed-content;
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
Referrer-Policy: strict-origin-when-cross-origin, no-referrer-when-downgrade
Permissions-Policy: autoplay=(), camera=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), publickey-credentials-get=()