From 6849e6d051d4063d2e2f2ee577809b11d1606a80 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Fri, 12 Nov 2021 19:52:00 -0500 Subject: [PATCH] HOLY SHIT, MIDDLEWARE ORDER MATTERED https://issueexplorer.com/issue/actix/actix-extras/191 --- app/storyteller_web/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/storyteller_web/src/main.rs b/app/storyteller_web/src/main.rs index 0636e91fcc..39a8e3927b 100644 --- a/app/storyteller_web/src/main.rs +++ b/app/storyteller_web/src/main.rs @@ -319,13 +319,13 @@ pub async fn serve(server_state: ServerState) -> AnyhowResult<()> App::new() .app_data(server_state_arc.clone()) .wrap(build_common_cors_config()) - .wrap(Logger::new(&log_format) - .exclude("/liveness") - .exclude("/readiness")) .wrap(DefaultHeaders::new() .header("X-Backend-Hostname", &hostname) .header("X-Build-Sha", "")) .wrap(IpFilter::new(ip_banlist)) + .wrap(Logger::new(&log_format) + .exclude("/liveness") + .exclude("/readiness")) // ==================== ACCOUNT CREATION / SESSION MANAGEMENT ==================== .service( web::resource("/create_account")