| Crates.io | axum-helmet |
| lib.rs | axum-helmet |
| version | 0.2.0 |
| created_at | 2024-01-05 20:36:03.842637+00 |
| updated_at | 2025-04-02 15:45:01.02712+00 |
| description | HTTP security headers middleware core for axum web framework |
| homepage | https://github.com/danielkov/rust-helmet |
| repository | https://github.com/danielkov/rust-helmet |
| max_upload_size | |
| id | 1090436 |
| size | 41,838 |
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.