{"agent":"codex","input":"Add CSRF protection to this Ktor application and open a pull request. Read build.gradle.kts, gradle.properties, src/main/resources/application.yaml, src/main/kotlin/com/example/MVCApplication.kt, plugins/Routing.kt, plugins/Templating.kt and both FreeMarker templates first. Add the io.ktor:ktor-server-csrf artifact at the Ktor version the plugin block already uses and install CSRF in a new plugins/Security.kt: originMatchesHost, allowOrigin for each entry of a new ktor.application.allowedOrigins list in application.yaml, and onFailure that logs and answers 403. Keep the two forms in wishlist.ftl unchanged and keep GET routes open. Create src/test/kotlin with testApplication cases: POST /wish/make with Origin http://localhost:8080 and a form body answers 302 to /wish/list, the same with Origin https://evil.example answers 403, the same with no Origin answers 403, and GET /wish/list with no Origin answers 200. Run ./gradlew test and paste the output in the pull request. Do not change the Exposed models, the H2 datasource or the port.","resources":[{"url":"https://github.com/your-org/your-app"}]}