Skip to content

Commit 40908c2

Browse files
committed
Only enabled security middleware with heroku environment
1 parent 07db8c9 commit 40908c2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

config.ru

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,8 @@ end
9191

9292
if ENV["RACK_ENV"] == "production"
9393
use Rack::SSL
94+
use Rack::Protection::HttpOrigin
95+
use Rack::Protection::FrameOptions
9496
end
9597

96-
use Rack::Protection::HttpOrigin
97-
use Rack::Protection::FrameOptions
98-
9998
run Lanyon.application(:skip_build => true)

0 commit comments

Comments
 (0)