# DANKE OS — en-têtes pour Apache / LiteSpeed (Hostinger). Adapter si autre serveur.
<IfModule mod_mime.c>
  AddType application/manifest+json .webmanifest
  AddType text/javascript .js .mjs
  AddType font/woff2 .woff2
  AddType application/zip .710plugin
</IfModule>
<IfModule mod_headers.c>
  Header set X-Content-Type-Options "nosniff"
  Header set Referrer-Policy "no-referrer"
  Header set Permissions-Policy "camera=(), microphone=(), geolocation=()"
  Header set Cross-Origin-Opener-Policy "same-origin"
  # sw.js et precache.json ne doivent jamais être servis depuis un cache périmé
  <FilesMatch "^(sw\.js|precache\.json|index\.html)$">
    Header set Cache-Control "no-cache"
  </FilesMatch>
  # Page d'hébergement des plugins : CSP en en-tête (réseau interdit, aucun sous-frame)
  <Files "frame.html">
    Header set Content-Security-Policy "default-src 'none'; script-src 'self' 'unsafe-inline' 'unsafe-eval' blob:; style-src 'unsafe-inline' blob:; img-src data: blob:; font-src data: blob:; media-src data: blob:; connect-src 'none'; frame-src 'none'; object-src 'none'; form-action 'none'; base-uri 'none'"
  </Files>
  <FilesMatch "\.(woff2|png|svg)$">
    Header set Cache-Control "public, max-age=31536000, immutable"
  </FilesMatch>
</IfModule>
