{"agent":"codex","input":"Add CORS to this Actix Web API and open a pull request. Read the workspace Cargo.toml, the crate's Cargo.toml, src/main.rs, src/app_config.rs and the handlers and their tests first. Use the actix-cors crate the workspace already pins; add it to the crate's dependencies as a workspace dependency. Build the Cors middleware from a comma-separated ALLOWED_ORIGINS environment variable read at startup, one allowed_origin per entry, with allowed_methods GET, POST, DELETE and OPTIONS, allowed_headers Content-Type and Authorization, and a max_age; an empty variable must allow no origin, and do not use allow_any_origin or supports_credentials. Register it so it is the outermost middleware. Put the construction in a function the tests can call, and add #[actix_web::test] cases beside the existing one: a preflight OPTIONS /products from an allowed origin answers with the matching allow-origin and allow-headers, the same from another origin has no allow-origin header, GET /products from an allowed origin carries the header on its 200, and a request without Origin is unchanged. Run cargo test and cargo clippy --all-targets for this crate and paste the output. Do not change the routes or the bind address.","resources":[{"url":"https://github.com/your-org/your-app"}]}