Skip to content

Commit

Permalink
Disable rack-protection
Browse files Browse the repository at this point in the history
  • Loading branch information
joto committed Jan 21, 2013
1 parent 3e52b3a commit 0bb38d1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions web/taginfo.rb
Expand Up @@ -72,6 +72,12 @@ class Taginfo < Sinatra::Base
set :host, 'localhost'
set :port, ARGV[0]
set :environment, :production

# Disable rack-protection library because it messes up embedding
# taginfo in an iframe. This should probably be done more
# selectively, but there is no documentation on what rack-protection
# is actually doing...
disable :protection
else
# test
enable :logging
Expand Down

0 comments on commit 0bb38d1

Please sign in to comment.