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

Version Path
secure_headers-7.0.0 docs/sinatra.md
secure_headers-6.7.0 docs/sinatra.md
secure_headers-6.6.0 docs/sinatra.md
secure_headers-6.5.0 docs/sinatra.md
secure_headers-6.4.0 docs/sinatra.md
secure_headers-6.3.4 docs/sinatra.md
secure_headers-6.3.3 docs/sinatra.md
secure_headers-6.3.2 docs/sinatra.md
secure_headers-6.3.1 docs/sinatra.md
secure_headers-5.2.0 docs/sinatra.md
secure_headers-3.9.0 docs/sinatra.md
secure_headers-6.3.0 docs/sinatra.md
secure_headers-5.1.0 docs/sinatra.md
secure_headers-3.8.0 docs/sinatra.md
secure_headers-6.2.0 docs/sinatra.md
secure_headers-3.7.4 docs/sinatra.md
secure_headers-6.1.2 docs/sinatra.md
secure_headers-6.1.1 docs/sinatra.md
secure_headers-6.1.0 docs/sinatra.md
secure_headers-6.0.0 docs/sinatra.md