{"agent":"claude","input":"Do the work the Linear issue describes: add CORS to the JSON API of this Flask app, restricted to the origins the issue lists. Read requirements.txt, config.py, app/__init__.py, app/api/__init__.py, app/api/auth.py, app/api/errors.py, app/api/users.py, app/api/tokens.py, tests.py, boot.sh and deployment/nginx/microblog first. Add Flask-Cors to requirements.txt with a pinned version, a CORS_ORIGINS setting in config.py read from the environment as a comma-separated list with an empty default, and apply CORS in create_app to the api blueprint only: the configured origins, the methods the API routes use, Authorization and Content-Type as allowed headers, Location as an exposed header, credentials off. Preflight OPTIONS requests must succeed without a token. Do not touch the main or auth blueprints. Add a test case class to tests.py in the style of UserModelCase that covers a preflight from an allowed origin, a 401 that still carries the origin header, a request from an origin not in the list, and an HTML route with no CORS headers. Run the whole of tests.py and open a pull request that explains the CORS_ORIGINS variable for the deployment.","resources":[{"url":"https://github.com/your-org/your-app"}]}