class

Kemal::Shield::XDownloadOptions

Inherits Kemal::Shield::Handler / Kemal::Handler / Kemal::HandlerInterface / HTTP::Handler / Reference / Object

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

Instance methods

call(context)
Source