fix: disable setreponseheaderlayer

there appears to be a bug in it possibly
This commit is contained in:
trisua 2025-06-15 23:40:36 -04:00
parent 83c6df6f6e
commit dd8e6561e6

View file

@ -119,10 +119,10 @@ async fn main() {
.make_span_with(trace::DefaultMakeSpan::new().level(Level::INFO))
.on_response(trace::DefaultOnResponse::new().level(Level::INFO)),
)
.layer(SetResponseHeaderLayer::if_not_present(
HeaderName::from_static("X-Frame-Options"),
HeaderValue::from_static("SAMEORIGIN"),
))
// .layer(SetResponseHeaderLayer::if_not_present(
// HeaderName::from_static("X-Frame-Options"),
// HeaderValue::from_static("SAMEORIGIN"),
// ))
.layer(CatchPanicLayer::new());
let listener = tokio::net::TcpListener::bind(format!("0.0.0.0:{}", config.port))