armature-security
Security utilities for the Armature framework.
Features
- CSRF Protection - Cross-site request forgery prevention
- XSS Prevention - Content sanitization
- CORS - Cross-origin resource sharing
- Security Headers - Best practice headers
- Input Sanitization - Clean user input
Installation
[]
= "0.1"
Quick Start
use ;
let app = new
.with_middleware
.with_middleware
.with_middleware;
CSRF Protection
let csrf = new
.token_header
.cookie_name;
CORS
let cors = new
.allow_origin
.allow_methods
.allow_headers
.max_age;
Security Headers
let headers = new
.content_security_policy
.strict_transport_security
.x_frame_options
.x_content_type_options;
License
MIT OR Apache-2.0