You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
zipcontent responses are missing nosniff and other security headers #16153
The main Django app already sets SECURE_CONTENT_TYPE_NOSNIFF = True (see #9033), but zipcontent is served by its own Cheroot WSGI app so it does not go through Django's SecurityMiddleware. I checked #9033, #15779, and #15888 before filing; those are adjacent but do not cover these zipcontent headers.
Expected behavior
zipcontent responses should set X-Content-Type-Options: nosniff, pin frame-ancestors (allowing the main Kolibri origin), base-uri, and form-action in the CSP, and set a conservative Referrer-Policy so embedded resources do not leak the zipcontent URL or peer base URL.
User-facing consequences
HTML5, H5P, Bloom, and similar resources are served from this app. Without nosniff and a tighter CSP, the browser has fewer guards against MIME sniffing or framing/navigation outside what the sandbox expects.
Steps to reproduce
On a local develop install, open any HTML5, H5P, or Bloom resource in Learn.
Inspect a zipcontent response in DevTools.
Confirm the headers above are missing and the CSP is only the default-src string from add_security_headers.
📝 This issue doesn't follow one of our issue templates yet. It is closest to Report a bug. Please edit the description to fix:
## AI usage is missing.
The check runs again when you save, and this comment goes away once it passes. We review the issue after that. If it still doesn't follow a template in 7 days, it will be closed.
Activity
learning-equality-bot commentedon Dec 3, 2026
📝 This issue doesn't follow one of our issue templates yet. It is closest to Report a bug. Please edit the description to fix:
## AI usageis missing.The check runs again when you save, and this comment goes away once it passes. We review the issue after that. If it still doesn't follow a template in 7 days, it will be closed.