fix: disable setreponseheaderlayer
there appears to be a bug in it possibly
This commit is contained in:
parent
83c6df6f6e
commit
dd8e6561e6
1 changed files with 4 additions and 4 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue