Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

Commit

Permalink
Merge pull request #255 from smoyth/disable_rack_protection
Browse files Browse the repository at this point in the history
Disable Rack::Protection
  • Loading branch information
Florian Mayer committed Dec 8, 2021
2 parents 712262d + aebc3f0 commit 1c6548d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/odkbuild_server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@

class OdkBuild < Sinatra::Application
disable :run

# This app was not designed to be compliant with Rack::Protection and we are choosing to not
# add compliance at this point.
disable :protection

set :views, File.dirname(__FILE__) + '/views' # required for dev env

before do
Expand Down Expand Up @@ -311,4 +316,3 @@ def error_not_found
return { :error => 'not found' }.to_json
end
end

0 comments on commit 1c6548d

Please sign in to comment.