Crates.io | axum-helmet |
lib.rs | axum-helmet |
version | 0.1.0 |
source | src |
created_at | 2024-01-05 20:36:03.842637 |
updated_at | 2024-01-05 20:36:03.842637 |
description | HTTP security headers middleware core for axum web framework |
homepage | https://github.com/danielkov/ntex-helmet |
repository | https://github.com/danielkov/ntex-helmet |
max_upload_size | |
id | 1090436 |
size | 10,042 |
axum-core
- Security Middleware for the axum
web frameworkIt works by setting HTTP headers for you. These headers can help protect your app from some well-known web vulnerabilities:
Add this to your Cargo.toml
:
[dependencies]
axum-helmet = "0.1"
use axum::{self, Router};
use axum_helmet::Helmet;
let app = Router::new()
.route("/", axum::handler::get(|| async { "Hello, World!" }))
.layer(Helmet::default());
// ...
This project is licensed under the MIT license.