`
diff --git a/http-relay/Cargo.toml b/http-relay/Cargo.toml
index 2bca62c..7bc0b85 100644
--- a/http-relay/Cargo.toml
+++ b/http-relay/Cargo.toml
@@ -11,3 +11,4 @@ futures-util = "0.3.31"
tokio = { version = "1.42.0", features = ["full"] }
tracing = "0.1.41"
url = "2.5.4"
+tower-http = { version = "0.6.2", features = ["cors", "trace"] }
diff --git a/http-relay/src/lib.rs b/http-relay/src/lib.rs
index ef5e0d2..367418e 100644
--- a/http-relay/src/lib.rs
+++ b/http-relay/src/lib.rs
@@ -17,6 +17,7 @@ use axum_server::Handle;
use tokio::sync::{oneshot, Mutex};
use futures_util::TryFutureExt;
+use tower_http::{cors::CorsLayer, trace::TraceLayer};
use url::Url;
// Shared state to store GET requests and their notifications
@@ -69,6 +70,8 @@ impl HttpRelay {
let app = Router::new()
.route("/link/:id", get(link::get).post(link::post))
+ .layer(CorsLayer::very_permissive())
+ .layer(TraceLayer::new_for_http())
.with_state(shared_state);
let http_handle = Handle::new();
diff --git a/pubky/src/native/api/auth.rs b/pubky/src/native/api/auth.rs
index 375570c..dbc355f 100644
--- a/pubky/src/native/api/auth.rs
+++ b/pubky/src/native/api/auth.rs
@@ -271,9 +271,10 @@ impl Client {
}
}
+#[derive(Debug, Clone)]
pub struct AuthRequest {
url: Url,
- rx: flume::Receiver