class Amber::Pipe::SecureHeaders

Overview

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

Defined in:

amber/pipes/secure_headers.cr

Constructors

Instance Method Summary

Instance methods inherited from class Amber::Pipe::Base

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

Constructor Detail

def self.new(hsts : Bool = false) #

[View source]

Instance Method Detail

def call(context : HTTP::Server::Context) #
Description copied from class Amber::Pipe::Base

Execution of this handler.


[View source]
def hsts=(hsts : Bool) #

[View source]
def hsts? : Bool #

[View source]