{"agent":"claude","input":"Add security headers to this Django REST Framework API. Read requirements/base.txt, config/django/base.py, production.py and test.py, config/settings/cors.py, sessions.py and jwt.py, config/urls.py, docker-compose.yml, docker/web_entrypoint.sh, pytest.ini, mypy.ini, the README's CORS and sessions sections and .github/workflows/django.yml first, then run manage.py check --deploy with the production settings and read every warning. In production.py add HSTS with seconds, include-subdomains and preload read from the environment with a short default, and explicit referrer policy, frame option and cross-origin opener policy. Add django-csp with a policy that allows only what the admin and the browsable API load, and a small middleware for a Permissions-Policy, registered in base.py. Leave CORS and the cookie settings alone. Write pytest tests under styleguide_example/common/tests that assert each header on an API route and the admin login under override_settings, including no HSTS when the seconds are zero. Run ruff, mypy and pytest as the workflow does, start gunicorn with the production settings and fetch an API route and the admin login with curl -I, run check --deploy again, and open a pull request that quotes the warnings before and after, the test output and the headers.","resources":[{"url":"https://github.com/your-org/your-app"}]}