{"agent":"claude","input":"A Linear issue labelled security says: \"Audit and fix the security headers: content security policy, referrer policy, permissions policy, and remove settings that no longer do anything.\" Do the work in this Wagtail repository. Read requirements/base.txt, bakerydemo/settings/base.py, production.py, dev.py and test.py, bakerydemo/urls.py, bakerydemo/templates/base.html and every template under bakerydemo/templates for inline scripts and styles, bakerydemo/base/tests/test_seo.py, AGENTS.md, Makefile and .github/workflows/ci.yml first. Check the pinned Django version's release notes for its built-in content security policy support and, if the pinned version has it, replace the django-csp block in base.py with SECURE_CSP_REPORT_ONLY by default and an environment switch to SECURE_CSP, add the ContentSecurityPolicyMiddleware after SecurityMiddleware and the csp context processor, put the nonce on the inline theme script in base.html, exclude the admin paths, and drop django-csp from the requirements; otherwise upgrade django-csp and say why. Remove SECURE_BROWSER_XSS_FILTER, replace REFERRER_POLICY with SECURE_REFERRER_POLICY set to strict-origin-when-cross-origin keeping the environment override, and add a middleware that sends a Permissions-Policy header denying camera, microphone and geolocation. Add bakerydemo/base/tests/test_security_headers.py in the style of test_seo.py asserting each header, the nonce match, and HSTS absent under test settings and present with override_settings. Run ./manage.py check, ./manage.py makemigrations --check --noinput and ./manage.py test with the test settings, make lint-server, and ./manage.py check --deploy under production settings before and after. Load a page and an admin preview in the browser to confirm nothing is blocked. Do not change the uwsgi configuration, the Docker files or any workflow. Open a pull request that links the issue, lists each header with its value, and quotes the test, lint and deploy-check output.","resources":[{"url":"https://github.com/your-org/your-app"}]}