class

Amber::Pipe::SecureHeaders

Inherits Amber::Pipe::Base < HTTP::Handler < Reference < Object

The SecureHeaders pipe sets security-related HTTP headers to help protect against common vulnerabilities like XSS, clickjacking, and MIME sniffing.

Constructors

new(hsts : Bool = false)
Source

Instance methods

call(context : HTTP::Server::Context)

Execution of this handler.

Source
hsts=(hsts : Bool)
Source
hsts?
Source