index.headers 1.0 KB

12345678910111213141516171819
  1. {{- $csp_policy := site.Params.security.csp.policy | default "" -}}
  2. {{- $csp_report_only := site.Params.security.csp.report_only | default false -}}
  3. {{- $default_perms := "accelerometer=(), camera=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), usb=()" -}}
  4. {{- $permissions_policy := site.Params.security.permissions.policy | default $default_perms -}}
  5. # Netlify headers
  6. # Automatically generated
  7. # Documentation: http://bit.ly/netlify-deployment
  8. /*
  9. X-Frame-Options: DENY
  10. X-XSS-Protection: 1; mode=block
  11. X-Content-Type-Options: nosniff
  12. Strict-Transport-Security: max-age=31536000; includeSubDomains
  13. Referrer-Policy: strict-origin-when-cross-origin
  14. {{with $csp_policy}}Content-Security-Policy{{if $csp_report_only}}-Report-Only{{end}}: {{replaceRE "(\\s\\s+)" " " (trim . " ")}}{{end}}
  15. {{with $permissions_policy}}Permissions-Policy: {{replaceRE "(\\s\\s+)" " " (trim . " ")}}{{end}}
  16. /index.webmanifest
  17. Content-Type: application/manifest+json
  18. /index.xml
  19. Content-Type: application/rss+xml