axum-helmet

Crates.ioaxum-helmet
lib.rsaxum-helmet
version0.1.0
sourcesrc
created_at2024-01-05 20:36:03.842637
updated_at2024-01-05 20:36:03.842637
descriptionHTTP security headers middleware core for axum web framework
homepagehttps://github.com/danielkov/ntex-helmet
repositoryhttps://github.com/danielkov/ntex-helmet
max_upload_size
id1090436
size10,042
Daniel Emod Kovacs (danielkov)

documentation

README

axum-core - Security Middleware for the axum web framework

crate docs

It works by setting HTTP headers for you. These headers can help protect your app from some well-known web vulnerabilities:

Usage

Add this to your Cargo.toml:

[dependencies]
axum-helmet = "0.1"

Example

use axum::{self, Router};
use axum_helmet::Helmet;

let app = Router::new()
    .route("/", axum::handler::get(|| async { "Hello, World!" }))
    .layer(Helmet::default());

// ...

License

This project is licensed under the MIT license.

Commit count: 9

cargo fmt