# Security headers for every response of the front door — the app shell, the # static files and the API alike. # # Included at server level by nginx-app.conf AND inside every location that # adds a header of its own: nginx drops ALL inherited add_header lines in a # location that has any add_header, which is how index.html once went out with # only its Cache-Control (security report, finding 1). A new location with an # add_header must include this file too. # # Content-Security-Policy, by directive: # script-src 'self' the Vite bundles, plugin bundles (/api/plugins/…) and # workers are all same-origin; no inline script, no eval # (pdf.js is told not to try). # style-src 'unsafe-inline': React and the plugins set style # attributes, and message HTML carries its own