Skip to content

Commit 93ea166

Browse files
committed
Completely remove SecurityHeaders middleware
Now the functionality is owned by Nginx.
1 parent ece67ec commit 93ea166

File tree

2 files changed

+0
-65
lines changed

2 files changed

+0
-65
lines changed

src/middleware.rs

-5
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ use self::debug::*;
1515
use self::ember_index_rewrite::EmberIndexRewrite;
1616
use self::head::Head;
1717
use self::log_connection_pool_status::LogConnectionPoolStatus;
18-
use self::security_headers::SecurityHeaders;
1918
use self::static_or_continue::StaticOrContinue;
2019

2120
pub mod app;
@@ -28,7 +27,6 @@ mod head;
2827
mod log_connection_pool_status;
2928
mod log_request;
3029
mod require_user_agent;
31-
mod security_headers;
3230
mod static_or_continue;
3331

3432
use conduit_conditional_get::ConditionalGet;
@@ -74,9 +72,6 @@ pub fn build_middleware(app: Arc<App>, endpoints: R404) -> MiddlewareBuilder {
7472
env == Env::Production,
7573
));
7674

77-
if env == Env::Production {
78-
m.add(SecurityHeaders::new(&config.uploader));
79-
}
8075
m.add(AppMiddleware::new(app));
8176

8277
// Parse and save the user_id from the session cookie as part of the authentication logic

src/middleware/security_headers.rs

-60
This file was deleted.

0 commit comments

Comments
 (0)