Sha256: 1e6721743b03c7d3e2831db6d4469c291365239418729f991c3ea81712fb742f
Contents?: true
Size: 432 Bytes
Versions: 48
Compression:
Stored size: 432 Bytes
Contents
## Sinatra Here's an example using SecureHeaders for Sinatra applications: ```ruby require 'rubygems' require 'sinatra' require 'haml' require 'secure_headers' use SecureHeaders::Middleware SecureHeaders::Configuration.default do |config| ... end class Donkey < Sinatra::Application set :root, APP_ROOT get '/' do SecureHeaders.override_x_frame_options(request, SecureHeaders::OPT_OUT) haml :index end end ```
Version data entries
48 entries across 48 versions & 1 rubygems