add x-frame headers

This commit is contained in:
David McMullin 2012-11-18 09:55:10 +00:00
parent 9723c4abc9
commit 9678a1d4b2
2 changed files with 6 additions and 0 deletions

View file

@ -12,6 +12,10 @@ gem 'rails_autolink', '1.0.9'
gem 'rack-cors', '0.2.7', :require => 'rack/cors' gem 'rack-cors', '0.2.7', :require => 'rack/cors'
# click-jacking protection
gem 'rack-protection', '1.2'
# authentication # authentication
gem 'devise', '2.1.2' gem 'devise', '2.1.2'

View file

@ -14,4 +14,6 @@ if defined?(Unicorn)
end end
use Rack::Deflater use Rack::Deflater
use Rack::ChromeFrame, :minimum => 8 use Rack::ChromeFrame, :minimum => 8
use Rack::Protection::FrameOptions
run Diaspora::Application run Diaspora::Application