Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
ff2e0777
Commit
ff2e0777
authored
Jul 13, 2015
by
Seth Vargo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use Rack::Protection
parent
1de51718
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
website/config.ru
website/config.ru
+11
-0
No files found.
website/config.ru
View file @
ff2e0777
...
@@ -3,6 +3,17 @@ require "rack/contrib/not_found"
...
@@ -3,6 +3,17 @@ require "rack/contrib/not_found"
require
"rack/contrib/response_headers"
require
"rack/contrib/response_headers"
require
"rack/contrib/static_cache"
require
"rack/contrib/static_cache"
require
"rack/contrib/try_static"
require
"rack/contrib/try_static"
require
"rack/protection"
# Protect against various bad things
use
Rack
::
Protection
::
JsonCsrf
use
Rack
::
Protection
::
RemoteReferrer
use
Rack
::
Protection
::
HttpOrigin
use
Rack
::
Protection
::
EscapedParams
use
Rack
::
Protection
::
XSSHeader
use
Rack
::
Protection
::
FrameOptions
use
Rack
::
Protection
::
PathTraversal
use
Rack
::
Protection
::
IPSpoofing
# Properly compress the output if the client can handle it.
# Properly compress the output if the client can handle it.
use
Rack
::
Deflater
use
Rack
::
Deflater
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment