class Kemal::Shield::XDownloadOptions

Overview

Kemal::Shield::XDownloadOptions is a handler that sets the X-Download-Options HTTP header.

Setting X-Download-Options to "noopen" helps preventing Internet Explorer users from executing downloads in your site's context.

This handler can be turned off by setting:

Kemal::Shield.config.x_download_options = false

Defined in:

kemal-shield/handlers/x_download_options.cr

Instance Method Summary

Instance Method Detail

def call(context) #

[View source]