Skip to content

Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors

Rust

fix(serve): log refused cross-origin requests at debug level

AkitaOnRailsc533791290e3
diff --git a/crates/ai-memory-cli/src/commands/serve.rs b/crates/ai-memory-cli/src/commands/serve.rs
index 9ace6f90..7a1f1b10 100644
--- a/crates/ai-memory-cli/src/commands/serve.rs
+++ b/crates/ai-memory-cli/src/commands/serve.rs
@@ -2953,7 +2953,9 @@ async fn require_same_origin_browser(req: Request<Body>, next: Next) -> Response
if !is_cross_origin_browser_request(req.headers()) {
return next.run(req).await;
}
- tracing::warn!(
+ // Any page the operator opens can trigger this at will, so it stays out
+ // of the default log level.
+ tracing::debug!(
path = req.uri().path(),
origin = ?req.headers().get(header::ORIGIN),
"rejected cross-origin browser request to an unauthenticated server"